Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedpython

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

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

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions

Question

OA as OC both of the above system On neither of the above system

Answered: 1 week ago