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 cylindrical specimen of a hypothetical metal alloy is stressed in compression. If its original and final diameters are 30.00 a
IrinaVladis [17]

Answer:

The original length of the specimen l_{o} = 104.7 mm

Explanation:

Original diameter d_{o} = 30 mm

Final diameter d_{1} = 30.04 mm

Change in diameter Δd = 0.04 mm

Final length l_{1} = 105.20 mm

Elastic modulus E = 65.5 G pa = 65.5 × 10^{3} M pa

Shear modulus G = 25.4 G pa = 25.4 × 10^{3} M pa

We know that the relation between the shear modulus & elastic modulus is given by

G = \frac{E}{2(1 + \mu)}

25.5 = \frac{65.5}{2 (1 + \mu)}

\mu = 0.28

This is the value of possion's ratio.

We know that the possion's ratio is given by

\mu = \frac{\frac{0.04}{30} }{\frac{change \ in \ length}{l_{o} } }

{\frac{change \ in \ length}{l_{o} } = \frac{\frac{0.04}{30} }{0.28}

{\frac{change \ in \ length}{l_{o} } = 0.00476

\frac{l_{1} - l_{o}  }{l_{o}  } = 0.00476

\frac{l_{1} }{l_{o} } = 1.00476

Final length l_{o} = 105.2 m

Original length

l_{o} = \frac{105.2}{1.00476}

l_{o} = 104.7 mm

This is the original length of the specimen.

5 0
3 years ago
technician A says that in any circuit, electrical current takes the path of least resistance. technician B says that while this
ArbitrLikvidat [17]

Answer:

  technician A is correct

Explanation:

Technician B has circuit topologies confused. In a series circuit, there is only one path for electrical current to take. In a parallel circuit, the current will divide between paths in proportion to the inverse of their resistance. The least resistance path will have the most current.

Technician A is mostly correct.

3 0
3 years ago
Maggie discovered that a pipe in her basement has sprung a leak. She calls a plumber but in the meantime she grabs a roll of duc
dem82 [27]

Answer:

The answer is "Option a".

Explanation:

Myelination was the myelinization mechanism of a neuron axon. The endothelium is enveloped all around the axon and isolates the axon that inhibits the neuronal message from leaking with the other neuronal axons. Inside this example, therefore, its tubes tape worked similarly to those of myelin sheath, which stops brain transmission.

3 0
3 years ago
A_____ transducer is a device that can convert an electronic controller output signal into a standard pneumatic output. A. pneum
makkiz [27]

Answer:

The correct answer is

option C. current to pneumatic (V/P)

Explanation:

A current to pneumatic controller is  basically used to receive an electronic signal from a controller and converts it further into a standard pneumatic output signal which is further used to operate a positioner or control valve. These devices are reliable, robust and accurate.

Though Voltage and current to pressure transducers are collectively called as electro pneumatic tranducers and the only electronic feature to control output pressure in them is the coil.

6 0
3 years ago
Alcohol consumption tends to cause more ___________ behavior.
lions [1.4K]

Answer:

Aggressive behavior

Explanation:

Alcohol consumption tends to cause more Aggressive behavior.

The consumption of alcohol plays a more role in our culture but drinking of too much alcohol can cause drowsiness, vomiting, Upset stomach, slurred speech, heart damage, infertile, numbness lung infections, and many more. Also too much alcohol can cause violence, anger and so on in the society.    

8 0
3 years ago
Other questions:
  • A __ insulated panel consists of a layer of insulating foam between two osb or plywood panels
    14·2 answers
  • Block B starts from rest, block A moves with a constant acceleration, and slider block C moves to the right with a constant acce
    11·1 answer
  • The fluid-conditioning components of hydraulic-powered equipment provide fluid that is clean and maintained at an acceptable ope
    6·1 answer
  • Consider a Carnot refrigeration cycle executed in a closed system in the saturated liquid-vapor mixture region using 0.96 kg of
    11·1 answer
  • Express the unsteady angular momentum equation in vector form for a control volume that has a constant moment of inertia I, no e
    9·1 answer
  • An automobile having a mass of 1100 kg initially moves along a level highway at 110 km/h relative to the highway. It then climbs
    7·1 answer
  • Complete the following sentence.
    10·1 answer
  • Draw a sinusoidal signal and illustrate how quantization and sampling is handled by
    8·1 answer
  • Use pseudocode. 1) Prompt for and input a saleswoman's sales for the month (in dollars) and her commission rate (percentage). Ou
    6·1 answer
  • Which of the following is critical when performing maintenance?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!