Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 dayStep 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