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
A refrigerator operates on average for 10.0 hours an day. If the power rating is the refrigerator is 709 w how much electrical e
Varvara68 [4.7K]

Answer:

61257.6 kW per day

Explanation:

The rating of the refrigerator is given as : 709 w

This means the power consumption is 709 joules per second

The operating time is given as 10 hours.

Change hours to second as

1 hour = 3600 seconds

10 hours = 36000 seconds

Apply the rating as;

709 w = 1 s

?         = 36000 seconds

perform cross product to get;

709 * 36000= 25524000 w

25524000 = 25524kW

For a day, 24 hours will be;

25524 kW = 10 hours

?                 =24 hours

={24*25524}/10 = 61257.6 kW per day

6 0
3 years ago
Cho biết tác dụng chung của các hệ giằng khung ngang nhà công nghiệp nhẹ 1 tầng 1 nhịp.
Dmitry_Shevchenko [17]
I don’t know how to speak the laungue or know this language
4 0
2 years ago
If 1 uF capacitor is fully charged with 120 V across it, how much energy is stored in it? (a) 7.2 kJ (b) 7.2 mJ (c) 0.12 mJ (d)
jeyben [28]

Answer:

(b) 7.2 mJ

Explanation:

ENERGY STORED IN CAPACITOR: the energy is stored in capacitor in electric field

which can be calculated by expressions

E=\frac{1}{2} c v{^2}

=\frac{1}{2} 10^{-6}120^{2}

=7200×10^{-6} J

= 7.2×10^{-3} J

=7.2 mJ

4 0
3 years ago
Brazing, Soldering and Adhesive Bonding are the types of • Liquid Solid System Welding Solid State Welding • Fusion Welding . No
olga_2 [115]

Answer: Solid state welding

Explanation: Solid state welding is the welding procedure which is based on the temperatures and pressure but without any liquid or vapor as aid for welding.This process is carried mainly cohesive forces and considering forces as less important. Brazing,soldering and adhesive is the process in which material are joint which the help of solid welding agent.Thus solid state welding is the correct option.

6 0
3 years ago
Compare and contrast the different forms of energy that are represented below:
Kitty [74]

Explanation:

1) Wind energy is generated through a wind turbine. When wind passes through the blades of wind mill, the blades of the wind mill tend to rotate. Due to the spinning of the rotor across the turbine, the kinetic energy from the wind is converted to electrical energy

2) Incase of wind energy, the consumption gets higher when there is more wind and would be zero incase of no movement of blades.

Incase of hydroelectric power, the generation is rather stable and consumption depends on the usage of power from the consumers

Incase of gasoline generator, the generation is also stable subject to availability of gasoline and consumption again depends on the usage of power from the consumers

3) Pros of Hydroelectric power

Cost of electricity generation is less

Can produce green energy

Produce mass volume of electricity

Cons of Hydroelectric power

Requires massive initial investement

Can be installed on certain demographical area

8 0
3 years ago
Other questions:
  • Suppose a possibly biased die is rolled 30 times and that the face containing
    13·1 answer
  • NO reacts with Br2 in the gas phase according to the following chemical equation: 2NO(g) +Br2(g)2NOBr(g) It is observed that, wh
    6·1 answer
  • A soil has the following Green-Ampt parameters Effective porosity 0.400 Initial volumetric moisture content-15% Hydraulic Conduc
    6·1 answer
  • According to the article "Edward R. Murrow: Inventing Broadcast Journalism," how did Murrow perceive the threat of Adolf Hitler?
    9·1 answer
  • A household refrigerator that has a power input of 450 W and a COP of 1.5 is to cool 5 large watermelons, 10 kg each, to 8 C. If
    7·1 answer
  • The following passage contains a fragment. Select the correct revision. Presley took the exuberance of gospel and added the freq
    7·1 answer
  • Cryogenic liquid storage. Liquid oxygen is stored in a thin-walled spherical container, 96 cm in diameter, which is further encl
    10·1 answer
  • Is an ideal way for a high school student to see what an engineer does on a typical day but does not provide a hands-on experien
    9·2 answers
  • Who is???????????????????
    13·1 answer
  • (Architecture) Sarah is an environmental activist. She frequently conducts various programs and activities in her community to p
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!