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 battery provides electricity in the state of ?
lys-0071 [83]

Answer:

Essentials. A battery is a device that stores chemical energy and converts it to electrical energy. The chemical reactions in a battery involve the flow of electrons from one material (electrode) to another, through an external circuit. The flow of electrons provides an electric current that can be used to do work.

7 0
3 years ago
Why does my man bun not have its own erodynamics
Aloiza [94]

Answer:

umm okay for starters I have no clue lol.

7 0
3 years ago
Read 2 more answers
Tanya Pierce, President and owner of Florida Now Real Estate is seeking your assistance in designing a database for her business
const2013 [10]

Answer:

the answer is attributes for each entity

5 0
4 years ago
Question 9 Two cells are connected in parallel. All cells are rated 1.5 V at 10 A. Et = ? (V)​
Eddi Din [679]
Parallel hookups increase amp hour capacity but voltage remains the same... 1.5 volts

Series the two and voltage is 3.0 volts.
7 0
4 years ago
A Capacitor is a circuit component that stores energy and can be charged when current flows through it. A current of 3A flows th
Neko [114]

Answer:

8 μC

Explanation:

By definition, current is the rate of change of charge, so we can write the following equation for current I:

I = ΔQ / Δt

As charge must be conserved, all the charge carried by the current must add to the charge on the plates of the capacitor, so we can finf this incremental charge as follows:

ΔQ = I* Δt (assuming that current remains constant during the charging process)

⇒ ΔQ = 3 A* 2 μsec = 3 coul/sec*2 μsec = 6 μC

As the initial charge must be conserved also, the magnitude of the net electric charge of the capacitor must be as follows:

Qnet = Q₀+ ΔQ = 2 μC + 6 μC = 8 μC

5 0
3 years ago
Other questions:
  • Steam flows at steady state through a converging, insulated nozzle, 25 cm long and with an inlet diameter of 5 cm. At the nozzle
    11·1 answer
  • The two stroke engines has greater cooling and lubrication requirements than four stroke engine. Explain why?
    14·1 answer
  • Which option is a potential environmental benefit of adopting a new<br> technology?
    9·2 answers
  • There is no charge at the upper terminal of the ele- ment in Fig. 1.5 for t 6 0. At t = 0 a current of 125e-2500t mA enters the
    11·1 answer
  • Clutches And Torque Converters both provide all of these EXCEPT:
    14·1 answer
  • Which of the following terms is defined as small bumps and slashes within a fluid power system?
    15·2 answers
  • Diameter is a measure of .......
    10·1 answer
  • 3. 1 4 1 5 9 <br> this is pi
    6·2 answers
  • 5.<br> Which of the following is considered ideal conditions?
    14·1 answer
  • Question 2: write a program for smart garage system using:
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!