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
3 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]3 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
A horizontal, opaque surface at a steady-state temperature of 80°C is exposed to an airflow having a free stream temperature of
lesya692 [45]

Answer:

Check the explanation

Explanation:

Kindly check the attached images below to see the step by step explanation to the question above.

7 0
3 years ago
What should you, the worker, be aware of with regard to evacuation procedures at your workplace
Alinara [238K]

Answer:

As a worker, it is important to follow the proper set of instructions or emergency plans during an emergent situation. Not carefully following the rules may result to a bigger problem such as further injury and damage to property.

Explanation:

Evacuation Procedure- This is a step-by-step procedure that people follow in order to safely vacate any building or place. This procedure is applicable to any situation, such as the workplace. This is now called the <em>Workplace Evacuation Procedure. </em>This is very important because there are so many unpredictable situations or events that are happening in the world right now, such as fire or earthquake. This procedure is being done through an evacuation plan.

The awareness of the workers regarding the proper way to evacuate during emergency situation is very important. It will be easier for them to know where to locate the nearest exit route. They will also learn to stop any form of device or equipment that could cause a hazzard during the situation. In case of the hospital, which is also a workplace, the employees will also learn how to assist the patients before themselves. They will also know where to assemble if there's a need to do so.

7 0
4 years ago
Read 2 more answers
What is the answer ?
tigry1 [53]
Is the control group
4 0
3 years ago
What is closest in meaning to a guild?<br> O rally<br> O framework<br> union<br> O embargo
Degger [83]

Answer:

Union

Explanation:

The correct option is - union

Reason -

Guild is an association of people for mutual aid or the pursuit of a common goal.

Rally is come together in order to provide some support or make a shared effort.

Framework is a basic structure underlying a system, concept, or text.

Union is a club, society, or association formed by people with a common interest or purpose.

An embargo is a government order that restricts commerce with a specified country or the exchange of specific goods.

5 0
3 years ago
A single-degree-of-freedom mass-spring-damper system is observed during its free vibration and the displacement amplitude decays
AleksandrR [38]

Answer:

Logarithmic decrement is equal to 0.182

Explanation:

given,

amplitude decay = 9 dB          

number of cycles = 12 cycles        

mass of the system = 7 kg        

spring stiffness = 3000 N/m            

logarithmic decrement = ?                  

now,                                                      

logarithmic decreament = ln\ D^{\frac{1}{n}}

                                        = ln\ 9^{\frac{1}{12}}

                                        =ln (1.2)

                                        = 0.182

Hence, Logarithmic decrement is equal to 0.182

5 0
3 years ago
Other questions:
  • A gear and shaft with nominal diameter of 34 mm are to be assembled with a medium drive fit (H7/s6). The gear has a hub, with an
    9·1 answer
  • A(n) _________ is a current greater than the equipment rated current or conductor ampacity, which is confined to the normal cond
    12·1 answer
  • Describe ICP/OES in detail.
    6·2 answers
  • You will be observing laminar-turbulent transition for room temperature (about 20°C) water flowing in a 0.602"" ID pipe (Schedul
    8·1 answer
  • How long will it take a Honda Civic to travel 118 miles if it is travelling at an average speed of 72 mph?
    6·1 answer
  • The question belongs to Electrical Engineering (Linear System).
    11·1 answer
  • . H<br> Kijwhayhwbbwyhwbwbwgwwgbwbwhwh
    6·2 answers
  • Bằng lý luận và thực tiễn, bạn hãy trình bày ý kiến của mình về quan điểm sau đây: "Quá trình dạy học là quá trình truyền thụ tr
    7·1 answer
  • What is the biggest disadvantage of using nuclear power to produce electricity?.
    10·1 answer
  • 1. Examine the following circuit. Find RT, I3, R1, R2, R3, V1, V2 and V3. Show all of your work clearly below.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!