Question: COMPLETE THE FOLLOWING C + + PROGRAM FOLLOWING ALL ASSIGNMENT GUIDLINES AND RESTRICTIONS Assignment You will be developing a speeding ticket fee calculator. This program

COMPLETE THE FOLLOWING C++ PROGRAM FOLLOWING ALL ASSIGNMENT GUIDLINES AND RESTRICTIONS
Assignment
You will be developing a speeding ticket fee calculator. This program will ask for a ticket file, which is produced by a central police database, and your
program will output to a file. Furthermore, your program will restrict the output to the starting and ending dates given by the user.
The ticket fee is calculated using four multipliers, depending on the type of road the ticket was issued:
Interstate multiplier: 5.2243
Highway multiplier: 9.4312
Residential multiplier: 17.2537
None of the above: }12.91
The multiplier is multiplied to the difference between the speed limit and the clocked speed to determine the fine's dollar amount.
Console User Interaction
You must ask the user on the console for an input ticket file, an output report file, a report starting date, and a report ending date. The following
prompts must be used:
"Enter a ticket file:
"Enter a report file: "
"Enter report start date (mm dd yyyy):
"Enter report end date (mm dd yyyy): " Input File Format
Each line will contain the following information:
1-901-09$ Restrictions / Hints
You must use I/O manipulators to force the day to be exactly two digits.
You must use I/O manipulators to set the fine to two decimal points.
You must use a constant ARRAY to store (and determine) the 3-character month.
You must use constants for the fine multiplier.
You must use a switch statement to apply the fine multiplier.
You must use I/O manipulators to set the field justifications (right and/or left).
The minimum fine is $0.00. If you calculate a negative fine, you must round it up to exactly $0.00.
Do not use a vector
Do not use getline or stringstreams Example
Valid input example1:
./speeding
Enter a ticket file: tickets.txt
Enter a report file: report.txt
Enter report start date (mm dd yyyy): 712017
Enter report end date (mm dd yyyy): 8112018
The ticket input file contains:
E05956481220188955 i
E51552273201710550 r
E71222164201520025 h
E21922112252017200010 p
The report output file contains:
03-Jul-2017E515522 $,948.95
25-Dec-2017E219221 $25702.84
Valid input example2:
./speeding
Enter a ticket file: inputs/old-tickets.txt
Enter a report file: new-report.txt
Enter report start date (mm dd yyyy): 712017
Enter report end date (mm dd yyyy): 8112018
Missing ticket file example:
./speeding
Enter a ticket file: somebadfilename
Unable to open somebadfilename.
Missing report file example:
./speeding
Enter a ticket file: tickets.txt
Enter a report file: somebadfolder/report.txt
Unable to open somebadfolder/report.txt.#include
COMPLETE THE FOLLOWING C + + PROGRAM FOLLOWING

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!