Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can someone please help me with this c++ problem? were Augt 2019 at the age of 15 my son competed in his first Strong Man
can someone please help me with this c++ problem?
were Augt 2019 at the age of 15 my son competed in his first Strong Man competition. There were three events: (1) Stone over, (2) Farmers frame medley, and (3) Axle deadlift. You must write a program that does the following: 1. Asks for the names of the 3 teen competitors. 2. Display a menu so the user can decide which of the events he/she wants to enter the information in for. (Use a switch statement here.) 3. For each of the events, the competitors get TWO attempts and the highest result of their attempts should be used for determining their ranking for the event. Be sure that Hint: you determine their best attempt BEFORE determining the rankings for each event. and test that it is 4. If the user selects Farmers Frame Medley he/she should then be asked for the number of seconds it took each competitor to complete. Seconds should include up to 2 decimal places. you code the 3. Determine how each competitor ranks in the event. The competitor with the next event. lowest time earns first place. There will be b. First place gets 3 points, 2nd place gets 2 points, 3nd place earns 1 point. some code that 5. If the user selects Axle Deadlift he/she should then be asked for the number of pounds you will be able the competitor was able to lift. to copy/paste, a. Determine how each competitor ranks in the event. The competitor with the and apply highest weight will earn first place. modifications to b. First place gets 3 points, 2ms place with 2 points, and third place with I point. get your 6. If the user selects Stone Over Bar he/she should then be asked for the number of stones program fully the competitor was able to lift. functional. a. Determine how each competitor ranks in the event. The competitor with the highest number will earn first place. b. First place gets 3 points, 2nd place with 2 points, and third place with 1 point. 7. Your program should display the following information: a. The name of the event b. The ranking of the event i. Include competitors name and the attempt that was used in the ranking ii. Display 1st,2nd, and 3nd places. iii. Display the points eamed for the ranking placement. 8. Be creative with your display, use output formatting where appropriate. IMPORTANT NOTE: We have not yes discussed loops, therefore you will enter information for one event and have it displayed on the screen. You will then run the program again, to show the next event, and a third time to show the third event. Also, make sure that the user does not enter any values that are less than 0 . If so, the program should end. 1. Use the given data to run your program and check your output for logical crrors. 2. Your screenshots for this problem should be based on the data given on the next page. 3. Your output WILL NOT look like the table on the next page, that table was created with Excel 4. Not using the given data will result in significant point deductions. Notice the following: 1. The items highlighted in yellow are determined by your program. 2. The items highlighted in blue are the user entries that are used for ranking. This is also determined by your program Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started