Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedPython

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

More Books

Students also viewed these Databases questions

Question

LO5 Illustrate the steps in developing a base pay system.

Answered: 1 week ago

Question

LO3 Outline strategic compensation decisions.

Answered: 1 week ago