B. Design a program that will keep track of a users golf score and let him/her k
ID: 3626506 • Letter: B
Question
B. Design a program that will keep track of a users golf score and let him/her know how far over or under par they are.
C. The program should accept the following input from the user:
a) Golfers Name
b) Amount of strokes the Golfer just had on the current hole, for 18 holes.
D. The program should prompt the golfer for the number of strokes on the just finished hole( EX. How many strokes did you have on hole 4?)
E. The program should keep track of the golfer’s total strokes and compare it to the current par. The program should let the golfer know how he/she is doing after data is entered for each hole (You are currently 3 over par).
F. The following holes are par 3:
a) 1, 4 ,5, 7, 17
G. The following holes are par 4:
a) 2, 3, 6, 11, 12, 15
H. The following holes are par 5:
a) 8, 9, 10, 13, 14, 16
I. The following hole is par 8:
a) 18
J. When the golfer finishes all 18 holes the scorecard should be output to the screen. The scorecard should show the hole number, par for the hole, and the golfers strokes for the hole. It should also show the total par, and total strokes.
K. A message should be displayed based on the golfers score compared to par. Different messages should be displayed based on over par, under par, or exactly par.
Explanation / Answer
ok i fixed the problem #include #include using namespace std; int main() { string name; coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.