I have to do an assignment for my C++ class which I have to make a program that:
-Opens a .txt or .dat file with the following information- day a phone call started, time the call started, how long the call lasted (in minutes)
-Then reads the .txt or .dat file in and process it by reading in the day of the week.
-If it is a M-F from 8am-6pm, calc. $.40 per min
-If it is a M-F from 6pm-8am, calc. $.25 per min
-If it is a S-S, calc. $.15 per min
-Then it has to out put the call information to an output file, along with the cost for each call, and the total cost of all calls.
The assignment says that the input file only need to contain 5 calls.
I'm having a lot of trouble with this assignment and was wondering if someone could please help me out.
I'll post what I have so far, I'll attach the .cpp file.
What I have so far is just a bare-bones outline of what I want to do.
I keep getting an error (illegal else without matching
So if anyone can/will help me out, please do.