Question: 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'ssay there are five events today, and for every gold medal thePython

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: Invalid

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!