Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python Write a program that awards Olympians for winning gold medals. Let's say there are five events today, and for every gold medal the winner
Python
Write a program that awards Olympians for winning gold medals. Let's say there are five events today, and for every gold medal the winner receives $75,000. Prompt the user for how many gold medals the Olympian won. The function should take exactly one parameter-a string for the number of gold medals. It will return either an integer for the money won or a string , if the amount is invalid. Olympians can win more than one medal per day. Sample Run 1 Enter Gold Medals Won: 1 Your prize money is: 75000 Sample Run 2 Enter Gold Medals Won: 2 Your prize money is: 150000 Sample Run 3 Enter Gold Medals Won: 3 Your prize money is: 225000 Sample Run 4 Enter Gold Medals Won: 4 Your prize money is: 300000 Sample Run 5 Enter Gold Medals Won: 4.1 Your prize money is: InvalidStep 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