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
kifflom [539]
3 years ago
5

Help!

Engineering
1 answer:
Sauron [17]3 years ago
6 0

The program requires the use of loops.

Loops are simply used to perform repetitive operations.

The program in C, where comments are used to explain each line is as follows:

#include <stdio.h>

int main(){

   //This declares all the variables

   int n, idno, hours;    float rate,pay;

   //This gets input for the number of employees

   printf("Employees: "); scanf("%d", &n);

   //This is repeated n times

   for(int i = 0; i<n; i++){

       //This gets input for the identification number

       printf("Identification number: "); scanf("%d", &idno);

       //This gets input for the hours worked

       printf("Hours worked: "); scanf("%d", &hours);

       //This gets input for the hourly rate

       printf("Rate: "); scanf("%f", &rate);

       //This calculates the pay, after tax

       pay = rate * hours * 0.99;

       //This calculates the pay, after tax for hours greater than 36

       if(hours > 36){

           pay = 0.99 * (rate * 36 + 0.5 * rate * (hours - 36));

       }

       //This prints the required output

       printf("Identification number: %d Pay: %f\n",idno,pay);

   }

   return 0;

}

Read more about loops at:

brainly.com/question/18430675

You might be interested in
Ben İngiliz oldum düzelte bilirmiyim
Lelu [443]

Answer:

What laguange is that?

Explanation:

7 0
3 years ago
The gas expanding in the combustion space of a reciprocating engine has an initial pressure of 5 MPa and an initial temperature
Anit [1.1K]

Answer:

a). Work transfer = 527.2 kJ

b). Heat Transfer = 197.7 kJ

Explanation:

Given:

P_{1} = 5 Mpa

T_{1} = 1623°C

                       = 1896 K

V_{1} = 0.05 m^{3}

Also given \frac{V_{2}}{V_{1}} = 20

Therefore, V_{2} = 1  m^{3}

R = 0.27 kJ / kg-K

C_{V} = 0.8 kJ / kg-K

Also given : P_{1}V_{1}^{1.25}=C

   Therefore, P_{1}V_{1}^{1.25} = P_{2}V_{2}^{1.25}

                     5\times 0.05^{1.25}=P_{2}\times 1^{1.25}

                     P_{2} = 0.1182 MPa

a). Work transfer, δW = \frac{P_{1}V_{1}-P_{2}V_{2}}{n-1}

                                  \left [\frac{5\times 0.05-0.1182\times 1}{1.25-1}  \right ]\times 10^{6}

                              = 527200 J

                             = 527.200 kJ

b). From 1st law of thermodynamics,

Heat transfer, δQ = ΔU+δW

   = \frac{mR(T_{2}-T_{1})}{\gamma -1}+ \frac{P_{1}V_{1}-P_{2}V_{2}}{n-1}

  =\left [ \frac{\gamma -n}{\gamma -1} \right ]\times \delta W

  =\left [ \frac{1.4 -1.25}{1.4 -1} \right ]\times 527.200

  = 197.7 kJ

6 0
3 years ago
In what way is a spud wrench different from a pipe wrench?<br><br> See picture
maks197457 [2]
A spud wrench and pipe is for install pipes
6 0
3 years ago
Read 2 more answers
A rigid bar pendulum is attached to a cart, which moves along the horizontal plane. The rigid bar has a center of mass at L/2. T
Vikentia [17]

Answer:

See the attached picture for answer.

Explanation:

See the attached picture for explanation.

4 0
4 years ago
A keyboard, monitor and mouse are all considered as computer hardware and a program is known as a software.
Iteru [2.4K]

Answer:

This should be true because program is a software and mouse and keyboard are specific computer hardware to make your exsperience with a computer more efficent and faster.

5 0
3 years ago
Other questions:
  • How much to build a barber clipper?
    10·1 answer
  • How does a car batteray NOT die?
    13·1 answer
  • If you should lose your balance, you should grab onto the turning center to steady yourself.
    10·1 answer
  • What are 5 advantages of wood as a manufacturing or construction​
    12·1 answer
  • Which source would be the best to base a hypothesis upon
    9·1 answer
  • A private plane pilot is what kind of individual transportation position? professional level mid-level entry-level EPA-certified
    9·1 answer
  • A Wii remote flung from a hand through a TV, with a kinetic energy of 1.44J and a mass of 4.5kg. Whats the velocity?
    6·1 answer
  • Poems that focus on one image usually have what purpose? PLEASE HELP MEH!!
    7·2 answers
  • Q.14
    5·1 answer
  • The only way to know if a design will work in real-world conditions is to build a model, or prototype, based on the plan. This i
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!