Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program which will ask the user for an employee name (string). Then it asks for the rate they get paid per doodad made

Write a program which will ask the user for an employee name (string). Then it asks for the rate they get paid per doodad made (float). Then it asks for the number of days they worked (int). Then it asks for each individual day's doodads made (int). After the number of doodads have been entered for each day worked, the program reports the total doodads made and the pay the person gets. You will need to use an accumulator for the doodads. Use a variable to hold the number 65, which is where the extra pay begins. This makes it easy to change if the limit changes. Yes, you can write the input prompt so that it will number the days. The trick is to create one string for the input function's argument, the prompt. The string you need is "Doodads done on Day " + str(ctr) + "? ". Remember the + is the concatenation operator when put between two strings. Str is the typecast to change a number variable into a string. You must use this string in the input statement Format the output numbers that are floats to 2 places.

in python please!!

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

More Books

Students also viewed these Databases questions

Question

4 How can you create a better online image for yourself?

Answered: 1 week ago