Write a program that determines which of the 6 states had the most traffic tickets last year.
Fantastic news! We've Found the answer you've been seeking!
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, 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.
Related Book For
Posted Date: