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
Verizon [17]
3 years ago
12

Write a program that computes the square footage of a house given the dimensions of each room.Have the program ask the user how

many rooms in the house and then request the dimensions of eachroom. Display the resulting total square footage.
Engineering
1 answer:
baherus [9]3 years ago
4 0
#include

int main () {

printf("Program to calculate the square footage of the house.\n");

int total_rooms;

double length, width;

double total_square_footage = 0.0;

printf("Enter total number of rooms in the house:");

scanf("%d", &total_rooms);

for (int i = 0; i
printf("Enter the lenght and width of room %d: ", i+1);

scanf("%if %if", &lenght, &width);

total_square_footage += lenght*width;

}

printf("Total square footage of the house: %if\n", total_square_footage);

return 0;

}


Please mark it as brainliest answer:).

You might be interested in
ANSWER ASAP<br> What is the point system?<br> this is for driving
lara31 [8.8K]

Answer:

A point system assigns point values to traffic violations for each state. When the DMV receives a conviction notice from the court, the offense is entered on your driving record and points are assigned. These points are counted during a specified time period.

Explanation:

3 0
3 years ago
What is engine knock? What cause the engine knock problem?
antiseptic1488 [7]

Answer:

When the uneven burning of the fuel takes place due to the incorrect air/fuel mixture inside the engine cylinder, a knocking sound is observed. This is called as the engine knocking.

Explanation:

When the uneven burning of the fuel takes place due to the incorrect air/fuel mixture inside the engine cylinder, a knocking sound is observed. This is called as the engine knocking.

The engine knock problem can be caused due to the following reason

a) When the octane rating of the fuel used is low.

b) The deposition of the carbon around the cylinder walls takes place.

c) The spark plug used in the vehicle is not correct.

3 0
3 years ago
A piston-cylinder device contains helium gas. During a reversible, isothermal process, the entropy of the helium will _________
DiKsa [7]

Answer:

During a reversible, adiabatic process, the entropy of the helium will NEVER increase.

During a reversible, isothermal process, the entropy of the helium will SOMETIMES increase

During an actual adiabatic process, the entropy of the helium will DEFINITELY increase

5 0
3 years ago
The bolts that attach a bracket to an industrial machine must each carry a static tensile load of 4 kN.
HACTEHA [7]

Answer:

M10 × 1.5

least number of threads is 4.3

Explanation:

given data

static tensile load = 4 kN = 4000 N

safety factor = 5

coarse‐thread metric = 5.8

solution

we know that proof load for 5.8  class is Sp = 380 MPa

so area of cross section is express as

area = \frac{force \times FOS}{Sp}    ......................1

area = \frac{4000 \times }{380}

area = 52.6  mm²

so by table at 58 mm² we can say we resist  M10 × 1.5

and

bolt tensile strength is express as

bolt tensile strength = nut shear strength    ......2

so here bolt tensile strength = At × Sy (bolt)    ...............3

and nut shear strength =  πd ( 0.75 t ) Sys

nut shear strength =   π × 10 × ( 0.75 t )  × 0.58  × \frac{2}{3}   × Sy(bolt)   ............4

so from equation 3 and 4 we get

t = 6.37 mm

and

for the pitch is = 1.5 mm

least number of threads is 4.3

8 0
3 years ago
If a toy car covers a distance of 42m in 7sec, what is it’s speed
S_A_V [24]

Answer:

6m/s

Explanation:

This is a basic division problem. To solve divide 42 by 7 to find its speed (meters/second).

42/7 is 6.

6 0
3 years ago
Read 2 more answers
Other questions:
  • Liquid methyl ethyl ketone (MEK) is introduced into a vessel containing air. The system temperature is increased to 55°C, and th
    12·1 answer
  • (a) A 10.0-mm-diameter Brinell hardness indenter produced an indentation 2.3 mm in diameter in a steel alloy when a load of 1000
    6·1 answer
  • Which of the following is an example of seeking accreditation?
    7·1 answer
  • Why/how is a paperclip able to float on water?
    9·1 answer
  • A reversible compression of 1 mol of an ideal gas in a piston/cylinder device results in a pressure increase from 1 bar to P2 an
    10·1 answer
  • Two loads connected in parallel draw a total of 2.4 kW at 0.8 pf lagging from a 120-V rms, 60-Hz line. One load absorbs 1.5 kW a
    5·1 answer
  • In science, a force is a push or a pull.<br> is it true or false ?
    5·1 answer
  • In approximately 200 words, explain what three factors you believe will have the greatest impact on the future of the green buil
    11·1 answer
  • Anyone want to play among us with me the code is MMJSUF
    14·2 answers
  • I’ll give you 100 points
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!