Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hint: Code each event and test that it is working before you code the next event. There will be some code that you will be
Hint:
Code each event
and test that it is
working before
you code the
next event.
There will be
some code that
you will be able
to copypaste
and apply
modifications to
get your
program fully
functional. c
no voids, loops or swaIn August at the age of my son competed in his first Strong Man competition. There
were three events: Stone over, Farmers frame medley, and Axle deadlift.
You must write a program that does the following:
Asks for the names of the teen competitors.
Display a menu so the user can decide which of the events heshe wants to enter the
information in for. Use a switch statement here.
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
you determine their best attempt BEFORE determining the rankings for each event.
If the user selects Farmers Frame Medley heshe should then be asked for the number
of seconds it took each competitor to complete. Seconds should include up to decimal
places.
a Determine how each competitor ranks in the event. The competitor with the
lowest time earns first place.
b First place gets points, nd place gets points, rd place earns point.
If the user selects Axle Deadlift heshe should then be asked for the number of pounds
the competitor was able to lift.
a Determine how each competitor ranks in the event. The competitor with the
highest weight will earn first place.
b First place gets points, nd place with points, and third place with point.
If the user selects Stone Over Bar heshe should then be asked for the number of stones
the competitor was able to lift.
a Determine how each competitor ranks in the event. The competitor with the
highest number will earn first place.
b First place gets points, nd place with points, and third place with point.
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 stnd and rd places.
iii. Display the points earned for the ranking placement.
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 If so the program should end.
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