1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
topjm [15]
4 years ago
10

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.
Computers and Technology
1 answer:
Mars2501 [29]4 years ago
6 0

Answer:

#include<stdio.h>

int main()

{

float rate_of_pay,regular_hours,overtime_hours,grosspay,netpay,tax;

printf("Enter the Hourly rate of pay : ");

scanf("%f",&rate_of_pay);

printf("Enter the number of Regular hours : ");

scanf("%f",&regular_hours);

printf("Enter the number of Overtime hours : ");

scanf("%f",&overtime_hours);

grosspay=(regular_hours*rate_of_pay)+(1.5*overtime_hours*rate_of_pay);

netpay=grosspay-(grosspay*0.2);

printf("Employee's Gross pay = %f\n",grosspay);

printf("Tax = %f\n",0.2*grosspay);

printf("Employee's Net pay = %f\n",netpay);

return 0;

}

Note: The variables are declared as float, to support partial hours like 0.5,6.5 etc.

Explanation:

You might be interested in
How to transfer music from computer to iphone?
vladimir1956 [14]
Depends on how you wanna do it, through iTunes or whatever other you are syncing from
8 0
3 years ago
A report that ends with the author providing his or her plan for next steps is considered a
Angelina_Jolie [31]
The specific part of the report wherein the author would provide his suggestions on the next plans that would be carried out in the study would be the recommendations. In addition, it would open the opportunity to other aspiring researchers to expound and better improve the study.
4 0
3 years ago
This algorithm works by selecting the smallest unsorted item in the list and then swapping it with the item in the next position
Juliette [100K]

Answer:

a) Bubble sort

Explanation:

Bubble sort is a type of sorting algorithm that swaps small value with a bigger value over a number of rounds called pass.

5 0
3 years ago
This standard library function returns a random oating-point number within a specied range of values.
IgorLugansk [536]

Answer:

Uniform

Explanation:

The uniform is a standard library function in python that returns a random floating number withing a specified range of values. Floating numbers which are integer numbers separated by a dot or decimal point from the fractional part. It is part of the random module. it is implemented as

Because it is defined in the random module, random module needs to be imported for uniform to be available for use.

import random

random.uniform(lowest point or highest number, highest point or highest number)

5 0
3 years ago
Defining table _______ creates links between tables that identify a correspondence of fields from one table to another.
Alexxx [7]

Answer:

B

Explanation:

3 0
4 years ago
Other questions:
  • In order to protect your computer from the newest virus, which of the following should you do after you've installed a virscan s
    9·1 answer
  • Write an expression that evaluates to true if the value of the integer variable numberOfPrizes is divisible (with no remainder)
    13·1 answer
  • What is a pin? part of a connector a port part of a cable a NIC
    14·1 answer
  • Which of the following is the largest unit of information?
    15·2 answers
  • The use of _______________ can validate input responses from clients and prevent certain attack methodologies
    14·1 answer
  • Write a statement that compares the values of score1 and score2 and takes the following actions. When score1 exceeds score2, the
    7·1 answer
  • A technician has been told that a keyboard is not responding at all. What can the technician do quickly to determine whether tha
    9·1 answer
  • What is the definition of “potential energy”?
    6·1 answer
  • Is it important for a writer to include voice and point of view in writing because...<br> Plz help
    10·1 answer
  • What is a hash function? A. A function that computes the location of the values in the array B. A function has allocated memory
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!