Write a program that prompts an SPC grad to enter her hourly pay rate and hours...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these programming questions
-
31% of American adults surveyed stated that giving up their phone for a day would be more difficult than giving up their significant other. In 2012, the United States population over the age of 18...
-
You write one New York Inc. June 120 call option contract for a premium of $5.68. You hold the position until the expiration date when New York Inc. stock sells for $126.56 per share. Calculate...
-
For publicly traded companies, the Sarbanes-Oxley Act prescribes fines and prison time for knowingly falsifying financial information. Further, investors of the company may be able to successfully...
-
Willy Wheelers preferences over bundles that contain nonnegative amounts of x1 and x2 are represented by the utility function U(x1, x2) = x12 + x22 Draw a few of his indifference curves. What kind of...
-
A multiple-choice test has 50 questions with four possible options for each question. For each question, only one of the four options is correct. A passing grade is 35 or more correct answers. a....
-
What is the probability that the sum of the dice is 7? Two dice are rolled. One is red and one is blue. Each will come up with a number between 1 and 6. There are 36 equally likely outcomes for this...
-
A stream containing H 2 S and inert gases and a second stream of pure SO 2 are fed to a sulfur recovery reactor, where the reaction 2H 2 S + SO 2 ? 3S + 2H 2 0 takes place. The feed rates are...
-
1. List five features of the "AT&T Office@Hand" service. What does "hosted" mean in a hosted voice solution? (10 points)
-
Review the 2 annual reports from 2020: Go and view the Starbucks Corporation - Financial Data - Annual Reports. Go and view the Annual Report | JDE Peet's (jdepeets.com). For each firm, calculate the...
-
In Winkelman, the Supreme Court found that parents could proceed in an IDEA appeal in court without an attorney, because they were representing their own interests. Before the decision, the vast...
-
What are the principal steps of the foreign exchange risk management process?
-
What are the differences between two-variance and three-variance analysis of indirect manufacturing costs? What are the variances computed in each case, and how are they calculated?
-
Define balanced scorecard. What are the three areas it specifically balances?
-
One remedy for procedural violations is to have a hearing officer or court order the school to comply with procedural requirements in the future. What should the remedy be if the school still...
-
what are the credible sources of secondary data a firm can employ, when any of the three needs of global marketing research (when it is preparing to export to a different market/country (foreign...
-
What is your assessment of the negotiations process, given what you have studied? What are your recommendations for Mr. Reed? You must justify your conclusions
-
What do you mean by extent of reaction? Derive an expression of the relationship between mole fraction of the component and the extent of reaction.
-
The following experimental data are available for \(\mathrm{CO}_{2}\) gas at \(92^{\circ} \mathrm{C}\) : PR 1 2 3 4 6 8 10 0.856 0.583 0.535 0.620 0.800 0.975 1.160 Find the fugacity of CO2 at 100...
-
Derive the following expression: \[ \left(\frac{\partial C_{P}}{\partial P} ight)_{T}=-T\left(\frac{\partial^{2} V}{\partial T^{2}} ight)_{P} \]
Study smarter with the SolutionInn App