Question: python Adjust the code you wrote for the last problem to allow for sponsored Olympic events. Add an amount of prize money for Olympians who

python Adjust the code you wrote for the last problem to allowpython

Adjust the code you wrote for the last problem to allow for sponsored Olympic events. Add an amount of prize money for Olympians who won an event as a sponsored athlete. Sample Run 1 Enter Gold Medals Won: 1 For how many dollars was your event sponsored?: 5000 Your prize money is: 80000 Sample Run 2 Enter Gold Medals Won: 2 For how many dollars was your event sponsored?: 25000 Your prize money is: 175000 Sample Run 3 Enter Gold Medals Won: 3 For how many dollars was your event sponsored?: 15000 Your prize money is: 240000 Sample Run 4 Enter Gold Medals Won: 4 For how many dollars was your event sponsored?: 1 Your prize money is: 300001 The function should take two parameters - a string for the number of gold medals and an integer for the sponsored dollar amount. It will return either an integer for the money won or a string Invalid, if the amount is invalid. Olympians can win more than one medal per day

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!