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
What is
Yuri [45]

Answer:

1

Explanation:

because every time you dived a number by its own number it is 1

6 0
2 years ago
Read 2 more answers
A gasoline engine takes in air at 290 K, 90 kPa and then compresses it. The combustion adds 1000 kJ/kg to the air after which th
Inessa [10]

Answer:

attached below

Explanation:

4 0
3 years ago
What's the difference between accuracy and percision in measuring and gaging?
lidiya [134]

Answer:

The term Accuracy means that how close our result to the original result.

Suppose we do any experiment in laboratory and we calculate mass = 7 kg but answer is mass = 15 kg then our answer is not accurate.

And the term Precision means how likely we get result like this.

Suppose we do any experiment in laboratory and we calculate mass five times and each time we get mass = 7 kg then our answer is precised but not accurate.

4 0
3 years ago
As the amplitude decreases in a wave the energy increasesTrue or false
Montano1993 [528]

Answer:

True

Explanation:

To summarise, waves carry energy. The amount of energy they carry is related to their frequency and their amplitude. The higher the frequency, the more energy, and the higher the amplitude, the more energy.

7 0
2 years ago
Describe the Optical Fiber Network( i need 2 paragraphs, but give me about 5 sentences or like 3)
frez [133]

Answer: Fiber Optic Network Fiber-optic networks have been used for decades to transmit large volumes of traffic across the country. The economics of fiber networks have only recently allowed for connecting the fiber directly to the home, creating a fiber-to-the-home (FTTH) network.

Explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • The development team recently moved a new application into production for the accounting department. After this occurred, the Ch
    6·1 answer
  • The 15-kg block A slides on the surface for which µk = 0.3. The block has a velocity v = 10 m/s when it is s = 4 m from the 10-k
    7·1 answer
  • State 2 reasons on why blind spot checks are important
    5·1 answer
  • An 80 kg man descends to the ground from an aeroplane using a parachute. If the drag coefficient of the parachute is 0.5 and the
    12·1 answer
  • g For this project you are required to perform Matrix operations (Addition, Subtraction and Multiplication). For each of the ope
    13·1 answer
  • Ok there..............................................
    6·1 answer
  • Nguyên lý hoạt động của kim phun
    7·1 answer
  • How did engineers help to create a ceiling fan
    8·1 answer
  • What is the mass of the same dragster body (volume of 150 cm3) if it is made of basswood instead?
    15·1 answer
  • Can you help me with this task/homework.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!