Question: C++ Write a program to calculate your golf rating based on your scores from 4 holes. You must drop the highest of the first three

 C++ Write a program to calculate your golf rating based onyour scores from 4 holes. You must drop the highest of the

C++

Write a program to calculate your golf rating based on your scores from 4 holes. You must drop the highest of the first three hole scores. The final score is the sum of the two lowest scores of the first 3 hole scores and the forth hole score. Your program should output the final score followed by the rating. The ratings has the following point cut-offs. A final score of: 8 and below is Eagle. 9, 10, or 11 is Birdie. 12, 13 or 14 is Average. 15 and higher is Beginner. For example, if the input is 36 43. The output would be: Final score: 10 Your rating: Birdie LAB ACTIVITY 11.11.1: Quiz 2 0/5 main.cpp Load default template... 1 #include 2 3 using namespace std; 4 5 int main() { 6 7 int hole1Score; 8 int hole2Score; 9 int hole3Score; 10 int hole4Score; 11 int final Score; 12 13 cout > hole1Score; 15 cout > hole2Score

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!