Write a program that computes the monthly net pay of the employee for a steelfactory. The input for this program is the hourly rate of pay, the number of regular andthe overtime hour work. The tax deductible rate is 20%. You need first to calculate thegross pay, which is the sum of the wages earned from regular hours and overtime hours,the overtime is paid at 1.5 times the regular rate. Then you subtract the tax from the grosspay to get the net pay of the employee.

Question
Asked Oct 3, 2019
91 views
Write a program that computes the monthly net pay of the employee for a steel
factory. The input for this program is the hourly rate of pay, the number of regular and
the overtime hour work. The tax deductible rate is 20%. You need first to calculate the
gross pay, which is the sum of the wages earned from regular hours and overtime hours,
the overtime is paid at 1.5 times the regular rate. Then you subtract the tax from the gross
pay to get the net pay of the employee.
check_circle

Expert Answer

Step 1

Employee’s gross salary is calculated by following formula , datatype and variables:

Variables:

rop= rate_of_pay.

rh= regular_hours.

oh= overtime_hours.

gp= gross pay.

np= net pay.

tax.= tax calculation.

Data Type: float

Formula used: 1. grosspay=(rh*rop)+(1.5*oh*rop).

        1. netpay=gp-(gp*0.2).
...

Want to see the full answer?

See Solution

Check out a sample Q&A here.

Want to see this answer and more?

Solutions are written by subject experts who are available 24/7. Questions are typically answered within 1 hour.*

See Solution
*Response times may vary by subject and question.
Tagged in

Engineering

Computer Science

Programing Language

Related Computer Science Q&A

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

Q: Determone whether the statement is true or flase. Prove directly from the definitions if its true, g...

A: Given statement:For all integers a, b, and c if a│bc then a│b or a│c.Answer:The given statement is “...

question_answer

Q: Write a class AnalyzeNumbers which asks the user to enter the number of inputs andstores them in an ...

A: Program plan:Define the class “AnalyzeNumbers”.Define the “main()” method.Create object for “Scanner...

question_answer

Q: Part 1: Stack As mentioned in class, Python 3 provides the LifoQueue class as part of the Queue libr...

A: Import the given class in another file.Create the function postfix() which takes a string as its arg...

question_answer

Q: Describe a hypothetical work environment that would be best for CISC and which for RISC. Explain why...

A: Reduced Instruction Set Computer (RISC) is a kind of the processor, or Instruction Set Architecture ...

question_answer

Q: (check all that apply) The ER model for a small bank system has Customer, Account, CheckingAccount, ...

A: The answer is option D - Employees and their supervisors.

question_answer

Q: In a server, the processor accounts for 50% of total server power, the memory system accounts for 30...

A: For a server,Power consumption of processor = 50 % of total powerPower consumption of memory system ...

question_answer

Q: Write a class named StockPrice. The class constructor should accept an array of stock prices as its ...

A: First of all ,you  need to create a class .The class name is StockPrice  in which you need to create...

question_answer

Q: Using Java Eclipse do the following program: Design a class named Rectangle to represent a rectangle...

A: Program Instructions:Declare variables width and height.Create a default and parameterized construct...

question_answer

Q: Write a python code of a function that takes in four points in a counterclockwise order, a, b, c, d ...

A: Program Instructions:Create a function isConvex() and pass the four points as arguments.Save the par...