Answered step by step
Verified Expert Solution
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
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