C++ Programming Problem – Store Traffic Assignment

C++ Programming Problem – Store Traffic Assignment

Write a program that uses a structure to store traffic counts for three of the area’s trans-bay bridges for a three month period.

For each of three months, track the following:

  • Total traffic across the Golden Gate bridge
  • Total traffic across the Bay Bridge
  • Total traffic across the San Mateo bridge

The program should have an array of three structures to hold traffic information for the three months. The program should prompt the user to enter data for each month, for each bridge. You can use any numbers you wish (some real numbers are available on this site (Links to an external site.)Links to an external site.).

Once all data is entered, the program should calculate and output the average monthly traffic for each of the three bridges, and the largest traffic count of any bridge in any one month. Print all values with two digits past the decimal point in fixed-point notation.

The program must use a structure (‘struct’) to store the data to receive credit, and no “hard coded” programs (such as those that print a fixed output or use fixed inputs) will be accepted.

Example Output:

The program should prompt for each of the 3 months for each bridge, for example:

Enter month 1 traffic across the Golden Gate Bridge:
Enter month 1 traffic across the Bay Bridge:
Enter month 1 traffic across the San Mateo Bridge:

Enter month 2 traffic across the Golden Gate Bridge:
...

Then output each of the averages and the highest traffic count month.

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30


WHATSAPP CHAT: +1 (781) 253-4162


Click ORDER NOW..

order custom paper