Question: Write a program that prompts an SPC grad to enter her hourly pay rate and hours worked last week. Both values may not be


Write a program that prompts an SPC grad to enter her hourly pay rate and hours worked last week. Both values may not be integers. Understanding that "time and a half" applies to hours in excess of forty, calculate and print the grad's regular pay, overtime pay, and total pay for the week. Outputs should display currency format with $ signs, two decimals, and commas for thousands. Example Outputs Enter the hourly pay rate 35.50 Enter the hours worked last week 32.5 Regular pay: $1,153.75 Overtime pay: $0.00 Total pay: $1,153.75 Enter the hourly pay rate 44.00 Enter the hours worked last week 45.0 Regular pay: $1,760.00 Overtime pay: $330.00 Total pay: $2,090.00 Write a program that prompts the user to enter an odd multiple of 19 that is more than 60 and less than 200. Respond to good inputs with "Good input". Respond to incorrect inputs with "Bad input". Use logical operators and just one if expression (no nested ifs). C:\Users\Corbin\Documents\GitHub\cop1000 auto testing\venv\Scripts\python.exe C:/Users/Corbin/Documents/GitHub/cop1000 auto testing/2022 spring/program3_2.py Enter valle 20 Bad input I C:\Users\Corbin\Documents\GitHub\cop1000 auto testing\venv\scripts\python.exe C:/Users/Corbin/Documents/GitHub/cop1000_auto_testing/2022 spring/program3_2.py Enter value 171 Good input Write a program that prompts the user to enter a two-digit integer. If the user's input is acceptable, prompt the user to enter another, DIFFERENT two-digit integer. If this input is also acceptable, the program should determine which integer is larger, and by how much, and print the result (see example outputs). If either input is unacceptable, the program should respond with a statement identifying the bad input. Use nested decision blocks and pay close attention to proper indentation. Example Outputs Enter a two-digit integer 111 Something is wrong with the first input. Try again Enter a two-digit integer 45 Enter another DIFFERENT two-digit integer 4 Something is wrong with the second input. Try again Enter a two-digit integer 55 Enter another DIFFERENT two-digit integer 55 Something is wrong with the second input. Try again Enter a two-digit integer 44 Enter another DIFFERENT two-digit integer 33 44 is larger than 33 by 11 Enter a two-digit integer 18 Enter another DIFFERENT two-digit integer 77 77 is larger than 18 by 59
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
