Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON You are offered two salary options for a user input number of days of work. Option I $100 per day. Option 2: $1 the

PYTHON

You are offered two salary options for a user input number of days of work.

Option I $100 per day.

Option 2: $1 the first day, $2 the second day, $4 the third day, $8 the fourth day, etc.

Ask the user for the number of days. Determine which option pays better.

Use functions named option 1 and option 2 to calculate and return the amount of money earned under each option.

The main program should print which is better.

If the input is:

10

The output is:

Enter the number of days

Option 1 pays $1000

Option 2 pays $1023

Option 2 is better.

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

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago