Question: I'm not asking you to write this program for me. What I need to know is what are istreams and how are they supposed to


I'm not asking you to write this program for me. What I need to know is what are istreams and how are they supposed to be used in this program?
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 or to the console depending on the command line arguments. 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.2252 Highway multiplier: 9.4412 Residential multiplier: 17.1525 None of the above:12.152 The multiplier is multiplied to the difference between the speed limit and the clocked speed to determine the fine's dollar amount. Use global constants for the multipliers above. User Interaction There will be no console interaction with the user for this lab. Instead, you the inputs will be made using command line ar The first user argument will be the database file to read from. The second user argument will be the start date in the format: year-month-day, such as 2011-11-22 The third user argument will be the end date in the format: year-month-day, such as 2015-11-23 The fourth user argument will be an output file name or a single dash " If the user gives you a "-you will write the report to the console using cout. Otherwise, you will write the report to the given filename. If the user types-for the output ticket file, you will write the output to the console, otherwise, you will output to an output file. Date Structure Create a structure called Date which contains three integers: month, day, and year
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
