Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Susan is hired for a job, and her employer agrees to pay her every day. Her employer also agrees that Susan's salary is 1

 

Susan is hired for a job, and her employer agrees to pay her every day. Her employer also agrees that Susan's salary is 1 penny the first day, 2 pennies the second day. 4 pennies the third day, continuing to double each day. Create a Python program that allows the user to enter the number of days that Susan will work and calculates the accumulated total amount of pay in dollar she will receive over that period of time. days-int(input('Enter the number of days Susan will work:')) startingSalary=.01 totalSalary=0

Step by Step Solution

3.47 Rating (157 Votes )

There are 3 Steps involved in it

Step: 1

The program for the given problem is given below days intinputEnter the ... 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

Intermediate Microeconomics and Its Application

Authors: walter nicholson, christopher snyder

11th edition

9781111784300, 324599102, 1111784302, 978-0324599107

More Books

Students also viewed these Accounting questions

Question

How is a master production schedule created, and how is it used?

Answered: 1 week ago

Question

What opportunities exist for raises and advancement?

Answered: 1 week ago

Question

26. How do genes and hormones infl uence taste sensitivity?

Answered: 1 week ago

Question

28. What is the mean life span of an olfactory receptor?

Answered: 1 week ago