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 06:00
Which of the following is a way that advancements in technology improve humans' ability to measure air quality and protect human health? a. air quality data gathered by new instruments can be used to reduce exposure to pollutants. b. new technologies enable natural and human-made pollution sources to be located and monitored. c. air quality data gathered by new instruments can be used to predict trends in pollution over time. d. new technologies allow governments to make informed decisions about the regulation of pollution. (choose more than one)
Answers: 2
question
Computers and Technology, 22.06.2019 15:00
Who is the first president to use social media as part of his campaign strategy
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
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, 03.10.2021 06:00
question
Mathematics, 03.10.2021 06:10
question
Mathematics, 03.10.2021 06:10
question
Mathematics, 03.10.2021 06:10
question
Mathematics, 03.10.2021 06:10