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
Two engineers are to solve an actual heat transfer problem in a manufacturing facility. Engineer A makes the necessary simplifyi
deff fn [24]

Answer:

Engineer A results will be more accurate

Explanation:

Analytical method is better than numerical method. Engineer A has used analytical method and therefore his results will be more accurate because he used simplified method. Engineer B has used software to solve the problem related to heat transfer his results will be approximate.

5 0
3 years ago
Hello I need some help with this please. Pick a problem in your school or community that you think could be solved with technolo
bezimeni [28]

Answer:

An AI operated automatic garbage collection system

Explanation:

There is always an issue in my neighbourhood with the garbagemen coming on time so having an automatic system will help in the overall efficiency in the task

7 0
3 years ago
Read 2 more answers
Why do bridges collapse?
Reika [66]

Hi! bridges could have been collapse due to an error made by the engineers during construction.

8 0
3 years ago
Read 2 more answers
Now that we have a second enemy, you will need to make some changes to the script that is attached to your backdrop. Look at tha
JulsSmile [24]

Answer:

<u><em>≡</em></u>

Explanation:

8 0
3 years ago
Write a C program that asks the user to enter two numbers, obtains the two numbers from the user and prints the sum, product, di
Bogdan [553]

Answer:

View Image

Explanation:

Initialize your variable as a float or double since you're going to be using fractions in your answer.

User scanf() to get user input.

Print out the sum, product, quotient, and difference between the two numbers.

8 0
4 years ago
Other questions:
  • Consider the following class definitions: class smart class superSmart: public smart { { public: public: void print() const; voi
    6·1 answer
  • An air-standard Otto cycle has a compression ratio of 6 and the temperature and pressure at the beginning of the compression pro
    13·1 answer
  • I have a plot plan with an angle of 35 degrees on the main lot, how will this affect the construction of the basement
    9·1 answer
  • A steady state and continuous separator has a total feed rate of 100. kg/h of a 55.0 wt. % benzene mixture. The balance is tolue
    7·1 answer
  • Which basic principle influences how all HVACR systems work?
    14·1 answer
  • Omg I just got 17/25 questions wrong using this on an Ag test , but got 100’s every time on health
    6·2 answers
  • Anything you want to do in Hootsuite can be found in the ________, with the main workspace in the _________?
    15·1 answer
  • Which of the following elements found in fertilizer helps plants produce fruit?
    15·2 answers
  • If Ella decided to become a children’s doctor, what career cluster would she belong in?
    13·1 answer
  • Which band has an average of $3.58 per hour of parking?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!