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, 22.06.2019 20:00
Which location-sharing service offers items for users as a gaming component and also allows them to collectively link their check-ins to publish a trip? a. whrrl b. buzzd c. foursquare (this option is wrong i already tried) d. gowalla for plato
Answers: 2
question
Computers and Technology, 22.06.2019 21:00
Which of these is most responsible for differences between the twentieth century to the twenty-first century?
Answers: 2
question
Computers and Technology, 24.06.2019 00:10
Read each statement below. if the statement describes a peer-to-peer network, put a p next to it. if the statement describes a server-based network, put an s next to it. p - peer-to-peer s - server-based
Answers: 1
question
Computers and Technology, 25.06.2019 08:30
Which of the following terms is described as “the art and design of using text”? a. typography b. elements of design c. typos d. graphic design
Answers: 1
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, 21.01.2021 07:20
question
History, 21.01.2021 07:20
question
Chemistry, 21.01.2021 07:20
question
History, 21.01.2021 07:20
question
Mathematics, 21.01.2021 07:20
Questions on the website: 13722361