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
Calculate the rate at which body heat is conducted through the clothing of a skier in a steady- state process, given the followi
olga2289 [7]

Answer:

230.4W

Explanation:

Heat transfer by conduction consists of the transport of energy in the form of heat through solids, in this case a jacket.

the equation is as follows

Q=\frac{KA(T2-T1)}{L} \\

Where

Q=heat

k=conductivity=0.04

A=Area=1.8m^2

T2=33C

T1=1C

L=thickness=1cm=0.01mQ=\frac{(0.04)(1.8m^2)(33-1)}{0.01m}

Q=230.4W

the skier loses heat at the rate of 230.4W

4 0
3 years ago
Which timeline shows the correct order of contributions made to the discovery of DNA?
Akimi4 [234]

Answer:

<em><u>THE ANSWER IS: B</u></em>

Explanation:

I took the Unit test and the answer is B

3 0
2 years ago
Read 2 more answers
What is the volicity of a rocket?
Marysya12 [62]

Answer:

7.9 kilometers per second

Explanation:

8 0
2 years ago
Read 2 more answers
A cylindrical container is 150mm in diameter and weights 2.25n when empty
stellarik [79]

Answer:

.

Explanation:

.

3 0
2 years ago
A loss in value caused by an undesirable or hazardous influence offsite is which type of depreciation?
Lubov Fominskaja [6]

External depreciation may be defined as a loss in value caused by an undesirable or hazardous influence offsite.

<h3>What is depreciation?</h3>

Depreciation may be defined as a situation when the financial value of an acquisition declines over time due to exploitation, fray, and incision, or obsolescence.

External depreciation may also be referred to as "economic obsolescence". It causes a negative influence on the financial value gradually.

Therefore, it is well described above.

To learn more about Depreciation, refer to the link:

brainly.com/question/1203926

#SPJ1

5 0
1 year ago
Other questions:
  • Consider a very long, slender rod. One end of the rod is attached to a base surface maintained at Tb, while the surface of the r
    8·1 answer
  • When a mesh in a circuit contains an independent or dependent current source, this leads to a special case of mesh-current analy
    14·1 answer
  • Using Von Karman momentum integral equation, find the boundary layer thickness, the displacement thickness, the momentum thickne
    14·1 answer
  • Time complexity of merge sort
    15·1 answer
  • Water (cp = 4180 J/kg·°C) enters the 2.5 cm internal diameter tube of a double-pipe counter-flow heat exchanger at 17°C at a rat
    7·1 answer
  • 1 kg of saturated steam at 1000 kPa is in a piston-cylinder and the massless cylinder is held in place by pins. The pins are rem
    5·1 answer
  • ‏What is the potential energy in joules of a 12 kg ( mass ) at 25 m above a datum plane ?
    7·1 answer
  • An engineer is trying to build a new measurement tool. Which step should the engineer complete first? A. Design a model of the t
    8·1 answer
  • 2. The speaker argues that more data allow us to see new things. Think about your favorite hobby—skateboarding, listening to mus
    8·2 answers
  • Might a synchronous motor equally well be called a synchronous inductor
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!