[Solved] Football Stats solved

30 $

File Name: Football_Stats_solved.zip
File Size: 197.82 KB

SKU: [Solved] Football Stats solved Category: Tag:

Or Upload Your Assignment Here:


Statistics on football games are often displayed as the number the points each team (home and visitor) scored in each of four quarters. Write a program to create an array for the home team scores and another array for the visiting team scores. The program should ask for the name of the home team and the visiting team. It should also ask for the number of points each team scores per quarter. Then, based on that input, it will create a text chart with the data and the total number of points for each team.

The program should look like this. Remember, anything after a “>” is user input. Also, don’t worry if you can’t get the number to line up nicely in columns.

Enter the home team’s name?>MountaineersEnter the visiting team’s name?>Fighting IrishHow many points did the Mountaineers score in quarter 1?>7How many points did the Fighting Irish score in quarter 1?>7How many points did the Mountaineers score in quarter 2?>10How many points did the Fighting Irish score in quarter 2?>7How many points did the Mountaineers score in quarter 3?>0How many points did the Fighting Irish score in quarter 3?>14How many points did the Mountaineers score in quarter 4?>21How many points did the Fighting Irish score in quarter 4?>0

Total StatisticsQuarter Mountaineers Fighting Irish1 7 72 10 73 0 144 21 0Total 38 28

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] Football Stats solved
30 $