subject
Computers and Technology, 18.12.2020 01:10 riveg

In the sport of golf, scoring is based upon what a normal score should be for a particular hole on a course. That normal score called “par” is based upon the length of that hole measured from the tee, the start point, to the green, the end point. For the vast majority of golf courses and for this problem par values will be either 3, 4 or 5. Golf scores can be reported in three ways. The first way is to report cumulative score. That is, the player scored a 68 after playing the standard 18 holes. The second way is to report the cumulative score in relation to par. If par for the course ( the sum of the par values of all the holes) is 72, then the score reported as 68 would be 4 under par. A score of 75 would be 3 over par. A score of 72 is reported as par. The third way is by holes won. A player wins a hole when his score is lower than his opponent’s score. Problem Given par and playerA and PlayerB’s score determine statistical information about the results of the first 9 holes. Sample Input There will be 9 lines of data. Each line will contain 3 positive integers separated by a space. The first integer will give the par value of each of the nine holes. The second integer will give the score for player A on the same nine holes. The third integer will give the score for player B on those same nine holes. Sample Output There will be five outputs. Print the following: The cumulative score for each player with the better score (the smaller number) first. The score in relation to par for the better score. The score in relation to par for the other player. The number of holes won by the player with the better score. The hole number and the sum of the score on the hole that is the highest for all the holes played. If there is a tie list the lowest numbered hole. Each question is worth 5 points apiece. Sample Input Sample Output 3 2 3 1. 37 40 4 5 5 2. 1 over par 5 6 6

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 12:30
Svieta is making a chart of the hours that different employees have put into a team project at work. what formula would autosum most likely generate if added into b8?
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
What allows you to create a wireless connection among your smart devices
Answers: 2
question
Computers and Technology, 23.06.2019 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
question
Computers and Technology, 23.06.2019 04:40
The narrative structure of the popular movies can be broken down into
Answers: 3
You know the right answer?
In the sport of golf, scoring is based upon what a normal score should be for a particular hole on a...
Questions
question
Mathematics, 05.03.2020 18:30
Questions on the website: 13722360