Question: Write a program that determines which of the 6 states had the most traffic tickets last year. The 6 states are California, Georgia, Alabama, Illinois,
Write a program that determines which of the 6 states had the most traffic tickets last year. The 6 states are California, Georgia, Alabama, Illinois, Michigan, and Florida. The program should have the following 2 functions, which are called by main.
Int getNumTickets () is passed the name of the state. It asks the user for the number of traffic tickets reported during last year, validates the input and then returns it. It should be called once for each state.
void findHighest () is passed the 6 traffic tickets totals. The function determines which is the highest and prints the name and totals for the state.
Input Validation: Do not accept negative numbers for traffic tickets.
Please solve it in C++ Language. Thank you.
Step by Step Solution
3.33 Rating (156 Votes )
There are 3 Steps involved in it
Sure I can help you write a C program for that task Well structure the program in the following way 1 Main Function This will manage the flow of the p... View full answer
Get step-by-step solutions from verified subject matter experts
