Thread: c++ program assignment help

  1. #1
    Registered User
    Join Date
    Dec 2013
    Posts
    1

    Question c++ program assignment help

    In class we have a small team working together. My team has a total of 4 member each in charge of a different part of a program we need to put together for class. My part is calculating the total cost of the calls. Obviously I will need the names of the char, input files and everything. I was just wondering if you guys could help me get a start on how I should write my section..

    Thanks much!

    Instructions

    You are going to work in teams for this assignment just as if you were working at a programming job. Once assigned your teams, your first required activity is to sit down together, in class, and write down you initial algorithm adding the function diagrams with passing information and a task list of who will develop what function. This information must be documented on your portion
    of the code using comments.

    Then each member will develop their own code and all of you will put it together in one large application development getting it working before submission.

    You will each turn in the completed working code that is functional and tested using multiple inputs.

    Write a program that computes the cost of a long-distance call. The cost of the call is determined according to the following rate schedule
    a. Any call started between 8:00 am and 6:00 pm, Mon thru Fri, is billed at a rate of $0.40 per minute.
    b. Any call started before 8:00 am and 6:00 pm, Mon thru Fri, is charged at a rate of $0.25 per minute.
    c. Any call started on a Sat or Sun is charged at a rate of $0.15 per minute.
    The input will consist of the day of the week, the time the call started, and the length of the call in minutes. The output will be the cost of the call. The time is to be input in 24 hour notation, so the time 1:30 pm is input as 13:30. The day of the week will be read as one of the following pairs of character values, which are stored in two variables of type char: Mo Tu We Th Fr Sa Su
    Be sure to allow the user to use either uppercase or lowercase letters or a combination of the two. The number of minutes will be input as a value of type int. (You can assume that the user rounds the input to a whole number of minutes.) Your program should include a loop that lets the user repeat this calculation until the user says to stop. After you have completely debugged your program, produce a final variant on this program that reads the information for the entire phone calls in one week from a file and then writes a phone bill to another file. The phone bill should show each call and the charge for each call as well as the total bill for all the calls. List the phone calls in the output file in the same order as they appear in the input file.

    Additional specs:
    Check to insure files open and exit the program if it fails.
    Give the user a chance to correct the name of the input file if incorrect.
    Make sure user entry is appropriate and when the final version is done - make sure entry from the file is appropriate.
    It must contain at LEAST one function.
    Use if / else, switch, arrays for full credit.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Well, that's why you had a sit-down with your team at the beginning. What you need to do depends on the info they collected (and how they stored it) and what info the next part needs (and how they need it to be stored). If your team hasn't worked out that sort of info yet, then you'll probably need to have another meeting.

    In general, though, you're going to be using "+".

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C Program ASsignment help :D
    By NewbieCProgramm in forum C Programming
    Replies: 4
    Last Post: 11-08-2011, 11:47 PM
  2. Program Crashing on Pointer Assignment
    By Pnevma in forum C Programming
    Replies: 7
    Last Post: 01-30-2008, 04:23 AM
  3. Help with a C program assignment. Please?
    By Loopah in forum C Programming
    Replies: 3
    Last Post: 11-16-2005, 08:37 PM
  4. Help with Program Assignment
    By kdb3395 in forum C++ Programming
    Replies: 2
    Last Post: 04-15-2002, 09:11 PM
  5. Need help w/ Chess-like program assignment!!!
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 10-17-2001, 09:43 PM

Tags for this Thread