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
I’m doing a project on renewable energy. There are 6 energy sources. Solar, wind, geothermal, hydroelectric, tidal, and biomass.
nalin [4]

Answer:

"Biofuels"

Explanation:

I don't know if this counts but I guess it's not one of those.

6 0
2 years ago
Read 2 more answers
Consider that a system has two entities, Students, Instructors and Course. The Student has the following properties: student nam
tekilochka [14]

Answer:

There's no answer ?

Explanation:

5 0
3 years ago
A thick steel slab ( 7800 kg/m3 , c 480 J/kg K, k 50 W/m K) is initially at 300 C and is cooled by water jets impinging on one o
Nutka1998 [239]

Answer:

1791 secs  ≈ 29.85 minutes

Explanation:

( Initial temperature of slab )  T1 = 300° C

temperature of water ( Ts ) = 25°C

T2 ( final temp of slab ) = 50°C

distance between slab and water jet = 25 mm

<u>Determine how long it will take to reach T2</u>

First calculate the thermal diffusivity

∝  = 50 / ( 7800 * 480 ) = 1.34 * 10^-5 m^2/s

<u>next express Temp as a function of time </u>

T( 25 mm , t ) = 50°C

next calculate the time required for the slab to reach 50°C at a distance of 25mm

attached below is the remaining part of the detailed solution

5 0
3 years ago
Primary Creep: slope (creep rate) decreases with time
Igoryamba

Answer:

true

Explanation:

Creep is known as the time dependent deformation of structure due to constant load acting on the body.

Creep is generally seen at high temperature.

Due to creep the length of the structure increases which is not fit for serviceability purpose.

When time passes structure gain strength as the structure strength increases with time so creep tends to decrease.

When we talk about Creep rate for new structure the creep will be more than the old structure i.e. the creep rate decreases with time.

5 0
3 years ago
The three resistors in the circuit shown have values of 4ohms 4ohms and 2ohms. The battery has a value of 12 volts. What is the
gtnhenbr [62]

Answer:

2ohms

Explanation:

3 0
3 years ago
Other questions:
  • For each section illustrated, find the second moment of area, the location of the neutral axis, and the distances from the neutr
    13·1 answer
  • Select the correct answer.
    7·1 answer
  • 11.A heat engine operates between two reservoirs at 800 and 20°C. One-half of the work output of the heat engine is used to driv
    6·1 answer
  • Output all combinations of character variables a, b, and c. If a = 'x', b = 'y', and c = 'z', then the output is: xyz xzy yxz yz
    14·1 answer
  • The following is a list of metals and alloys:
    10·1 answer
  • What is a business cycle? a period of economic growth followed by economic contraction the amount of time it takes a business to
    13·2 answers
  • 5. In the decision-making cycle, to Execute means to
    5·2 answers
  • Convert A'B'C'D' + A'B'C'D + A'B'CD' + A'BC'D + AB'C'D' + AB'C'D+ AB'CD' to SOP form
    12·2 answers
  • Omplete the following program: [0.5 X 4 = 2]
    11·1 answer
  • Code for XOR with two input logic gate
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!