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, dont worry if you cant get the number to line up nicely in columns.Enter the home teams name?MountaineersEnter the visiting teams 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?0Total StatisticsQuarter Mountaineers Fighting Irish1 7 72 10 73 0 144 21 0Total 38 28
Only logged in customers who have purchased this product may leave a review.
Reviews
There are no reviews yet.