Design a payroll program that prompts user enter an employee's hourly pay rate and the number of hours worked. Validate user's input so that only pay rates in the range of $7.5 through $18.25 and hours in the range of 0.5 through 40 are acceptable. If user enters validate data in less than three tries, the program calculate and display gross pay, otherwise tell user the program will be terminated because of too many invalid input. Please provide step by step solution for this problem!

Question
Asked Feb 25, 2019
377 views

Design a payroll program that prompts user enter an employee's hourly pay rate and the number of hours worked. Validate user's input so that only pay rates in the range of $7.5 through $18.25 and hours in the range of 0.5 through 40 are acceptable. If user enters validate data in less than three tries, the program calculate and display gross pay, otherwise tell user the program will be terminated because of too many invalid input.

Please provide step by step solution for this problem! 

Expert Answer

Want to see the step-by-step answer?

See Answer

Check out a sample Q&A here.

Want to see this answer and more?

Step-by-step answers are written by subject experts who are available 24/7. Questions are typically answered within 1 hour.*

See Answer
*Response times may vary by subject and question.
Tagged in
EngineeringComputer Science

Programing Language

Related Computer Science Q&A

Find answers to questions asked by student like you
Show more Q&A

Q: I am trying to get the range of bits from a number. For example , if I call bitRange(0x00001234, 0 ,...

A: Step 1: To extract the bits from the hexadecimal number we need to use the shift operator and use bi...

Q: Create a PL/SQL block to calculate factorial of a number entered from the screen by the user. If the...

A: The PL/SQL block to calculate factorial of a number entered from the screen by the user is given bel...

Q: List the octal and hexadecimal numbers from 1410 to 3210. Using A and B for the last two digits, lis...

A: Answer:Listing octal values from 1410 to 3210:Divide 14 by 8 (octal number) giving 1 remainder 61 is...

Q: Draw a full-adder using only NAND gates.

A: The full adder circuit with NAND gates is shown below.  It is a simple 1 bit adder.

Q: Eliminate all λ-productions from S → AaB|aaB, A → λ, B → bbA|λ.

A: A procedure of removing all λ productions is as follows:

Q: 12 4x)x,is an another form of representation of fuzzy set. A, (x) /x, is an another form of represen...

A: A fuzzy set is a pair X, m(A)) where X is a Universal set and mA) is a membership function or degree...

Q: For problem 10RQ for Business Informaiton Systems book by Paige Baltzan, the question asked what is ...

A: The terms Collective intelligence, Knowledge management and Crowdsourcing are related to each other ...

Q: what is the best test strategy for any ERP system?

A: ERP stands for Enterprise resource planning is a software used for business process management. It a...

Q: Programming in C language.

A: In order to implement the question mentions a method called getChoice() information about which has ...