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
A tank with a volume of 8 m3 containing 4 m3 of 20% (by volume) NaOH solution is to be purged by adding pure water at a rate of
lawyer [7]

Answer:

The time necessary to purge 95% of the NaOH is 0.38 h

Explanation:

Given:

vfpure water(i) = 3 m³/h

vNaOH = 4 m³

xNaOH = 0.2

vfpure water(f) = 2 m³/h

pwater = 1000 kg/m³

pNaOH = 1220 kg/m³

The mass flow rate of the water is = 3 * 1000 = 3000 kg/h

The mass of NaOH in the solution is = 0.2 * 4 * 1220 = 976 kg

When the 95% of the NaOH is purged, thus the NaOH in outlet is = 0.95 * 976 = 927.2 kg

The volume of NaOH in outlet after time is = 927.2/1220 = 0.76 m³

The time required to purge the 95% of the NaOH is = 0.76/2 = 0.38 h

4 0
4 years ago
a metal rod 24mm diameter and 2m long is subjected to an axial pull of 40 kN. If the rod is 0.5mm, then find the stress-induced
ozzi

Answer:

i dont know but i will take the points tho hahah

Explanation:

8 0
3 years ago
11. Which of these is NOT true when dealing with refrigerants?
Alexus [3.1K]
Answer is an increase in pressure will cause an decrease in the pressure
4 0
3 years ago
What is definition of<br>computational fluid Dynamics <br>unstructured grid <br>domain<br>geometry​
Keith_Richards [23]
Najsjjsjhshehdhdhdhdhhdhdhdhdhhd
6 0
3 years ago
Which examples demonstrate tasks commonly performed in Maintenance/Operations jobs? Check all that apply.
Verdich [7]

1.Ross fixes a dishwasher for a homeowner.

3.Cassandra fixes holes in an old road.

4 0
3 years ago
Read 2 more answers
Other questions:
  • A pitfall cited in Section 1.10 is expecting to improve the overall performance of a computer by improving only one aspect of th
    6·1 answer
  • A slight breeze is blowing over the hot tub above and yields a heat transfer coefficient h of 20 W/m2 -K. The air temperature is
    15·1 answer
  • The viscosity of all liquids decreases as the temperature is a) Increased b) decreased c) maintained constant d) fluctuating e)
    12·1 answer
  • A light pressure vessel is made of 2024-T3 aluminum alloy tubing with suitable end closures. This cylinder has a 90mm OD, a 1.65
    8·1 answer
  • Interlocking stacked material is done by​ _____.
    10·2 answers
  • (TCO 1) Name one disadvantage of fixed-configuration switches over modular switches. a. Ease of management b. Port security b. F
    6·1 answer
  • Which type of load is not resisted by a pinned joint? A) Moment B) Shear C) Axial D) Compression
    7·1 answer
  • The goal of the following model is generate a clock waveform that has the clock high 4 time units and low 4 time units, with the
    15·1 answer
  • Select the correct answer. Felix aspires to be an engineer working for the government. What credentials will Felix require to ap
    5·1 answer
  • Why is electricity considered a secondary source of energy
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!