Question: 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
Get step-by-step solutions from verified subject matter experts
