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
posledela
2 years ago
13

Write a program to calculate overtime pay of 10 employees. Overtime is paid at the rate of Rs. 12.00

Engineering
1 answer:
fgiga [73]2 years ago
6 0

Answer:

Here is the code.

Explanation:

#include<stdio.h>

int main()

{

int i, time_worked, over_time, overtime_pay = 0;

for (i = 1; i <= 10; i++)

{

 printf("\nEnter the time employee worked in hr ");

 scanf("%d", &time_worked);

 if (time_worked>40)

 {

  over_time = time_worked - 40;

  overtime_pay = overtime_pay + (12 * over_time);

 }

}

printf("\nTotal Overtime Pay Of 10 Employees Is %d", overtime_pay);

return 0;

}

Output :

Enter the time employee worked in hr 42

Enter the time employee worked in hr 45

Enter the time employee worked in hr 42

Enter the time employee worked in hr 41

Enter the time employee worked in hr 50

Enter the time employee worked in hr 51

Enter the time employee worked in hr 52

Enter the time employee worked in hr 53

Enter the time employee worked in hr 54

Enter the time employee worked in hr 55

Total Overtime Pay Of 10 Employees Is 1020.

You might be interested in
If a pendulum takes 2 sec to swing in each direction, find the period and the frequency of the swing
DaniilM [7]
The period ( measured in s) is the amount of time is takes for the pendulum to make a single cycle, i.e. how long it takes to swing in both direction. The frequency (measured in Hz) is the inverse of the period, the number of cycles it completes in one second.

So long as you know one you can find the other by diving 1 by it. Period = 1 / frequency, and frequency = 1 / period

If the pendulum takes 2s in each direction, then it has a period of 4s. So the frequency = 1 / 4s = 0.25Hz
8 0
3 years ago
Technician A states that a brake lathe is used to make a used brake rotor surface "like new". Technician B states that a brake l
nikitadnepr [17]

Answer:

Both Technician A and B are correct.

Explanation: A brake lathe is a special tool used to improve or work on the surface of brake pads it helps to smoothen the surface.

Brake lathe has been found to be very effective in removing rusts in rotors and unevenness in the brake pad surfaces in order to ensure the efficiency and effectiveness of the brake system of a vehicle. Hence, a brake lathe helps to make brake rotor surface as smooth as possible.

7 0
3 years ago
What is the least count of screw gauge?<br> (a) 0.01 cm<br> (b) 0.001 cm<br> (c) 0.1 cm<br> (d) 1 mm
Nonamiya [84]
Its 0.001

0.01 x100 = 1mm
0.001x100=0.1mm
0.1=10mm
1m
3 0
2 years ago
Why is it better for a CPU to have more than one cache?
Tomtit [17]

Answer:

In general a cache memory is useful because the speed of the processor is higher than the speed of the ram . so reducing the number of memory is desirable to increase performance .

Explanation:

.

.

#hope it helps you ..

(◕ᴗ◕)

3 0
2 years ago
Which option identifies what Maria must pay attention to while creating her sketches in the following scenario?
vodka [1.7K]
The freaking answer iis the secシ❥❥☀︎︎
5 0
2 years ago
Other questions:
  • A 5 MW gas turbine power plant is reported to have a thermodynamic efficiency of 35%. Assume products of the combustion reaction
    5·1 answer
  • Talc and graphite are two of the lowest minerals on the hardness scale. They are also described by terms like greasy or soapy. B
    14·1 answer
  • WHAT IS A TOROID IN HYDRAULUCS?
    11·2 answers
  • Discuss four (4) advantages of direct and indirect water supply system.
    5·2 answers
  • A waste treatment pond is 50m long and 25m wide, and has an average depth of 2m.The density of the waste is 75.3 lbm/ft3. Calcul
    12·1 answer
  • when a metal, such as lead, is oxidied (loses electrons) to form a positive ion (cation), how does he solubility change?
    14·1 answer
  • 1. Using a typical frequency value for the initiating event and PFD values provided in class lectures, estimate the mishap or co
    6·1 answer
  • Describe the relationship between atomic structure and Youngs' modulus?
    15·1 answer
  • Why would Chris most likely conclude that he should seek help? A. He feels in control of his emotions even though people annoy h
    15·2 answers
  • Steel riverts in aluminium drain gutters leak after two years. is it galvanic corrosion? ​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!