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
Explain why surface temperature increases when two bodies are rubbed against each other. What is the significance of temperature
Ronch [10]

Answer:

The surface temperature increases when two bodies are rubbed against each other due to friction.

Explanation:

No object has a perfectly even surface. So, when two bodies with uneven surfaces are rubbed against each other, they experience friction.

Friction is a resistance experienced by the two bodies when they are moved against each other.

The friction between the two surfaces, converts the kinetic energy of the movement to the thermal energy.

Thus, resulting in rise in the surface temperature of the two bodies.

Therefore, when two bodies are rubbed against each other, the surface temperature increases due to friction.

7 0
3 years ago
The quantity of bricks required increases with the surface area of the wall, but the thickness of a masonry wall does not affect
Yakvenalex [24]

Answer:

false

Explanation:

5 0
3 years ago
Read 2 more answers
A circular ceramic plate that can be modeled as a blackbody is being heated by an electrical heater. The plate is 30 cm in diame
MakcuM [25]

Answer:

Heater power = 425 watts

Explanation:

Detailed explanation and calculation is shown in the image below

6 0
3 years ago
When the rod is circular, radial lines remain straight and sections perpendicular to the axis do not warp. In this case, the str
Murljashka [212]

The question is incomplete. The complete question is :

The solid rod shown is fixed to a wall, and a torque T = 85N?m is applied to the end of the rod. The diameter of the rod is 46mm .

When the rod is circular, radial lines remain straight and sections perpendicular to the axis do not warp. In this case, the strains vary linearly along radial lines. Within the proportional limit, the stress also varies linearly along radial lines. If point A is located 12 mm from the center of the rod, what is the magnitude of the shear stress at that point?

Solution :

Given data :

Diameter of the rod : 46 mm

Torque, T = 85 Nm

The polar moment of inertia of the shaft is given by :

$J=\frac{\pi}{32}d^4$

$J=\frac{\pi}{32}\times (46)^4$

J = 207.6 mm^4

So the shear stress at point  A is :

$\tau_A =\frac{Tc_A}{J}$

$\tau_A =\frac{85 \times 10^3\times 12 }{207.6}$

$\tau_A = 4913.29 \ MPa$

Therefore, the magnitude of the shear stress at point A is 4913.29 MPa.

3 0
3 years ago
A closed system of mass 10 kg undergoes a process during which there is energy transfer by work from the system of 0.147 kJ per
mr_godi [17]

Answer:

-50.005 KJ

Explanation:

Mass flow rate = 0.147 KJ per kg

mass= 10 kg

Δh= 50 m

Δv= 15 m/s

W= 10×0.147= 1.47 KJ

Δu= -5 kJ/kg

ΔKE + ΔPE+ ΔU= Q-W

0.5×m×(30^2- 15^2)+ mgΔh+mΔu= Q-W

Q= W+ 0.5×m×(30^2- 15^2) +mgΔh+mΔu

= 1.47 +0.5×1/100×(30^2- 15^2)-9.7×50/1000-50

= 1.47 +3.375-4.8450-50

Q=-50.005 KJ

7 0
3 years ago
Read 2 more answers
Other questions:
  • Which of the following describes what occurs when energy is lost in efficient transformation?
    14·1 answer
  • Why do we write proton ions first before electron ions? <br>​
    10·1 answer
  • Consider the following incomplete code segment, which is intended to print the sum of the digits in num. For example, when num i
    8·1 answer
  • A Carnot engine has a piston displacement volume of 7.5 liters. The volume at the beginning of heat addition is 1.0 liters, the
    14·1 answer
  • Define, in words the following i relative humidity ii) dew point temperature
    7·1 answer
  • The phase sequence of a 3-phase system for which VAN = 120 /90o V and VBN = 120 /210o V is:_______
    11·1 answer
  • The housing for a certain machinery product is made of two components, both aluminum castings. The larger component has the shap
    10·1 answer
  • How do you build a house.
    15·1 answer
  • Cup-sveg-aph<br><br>I m finding gf<br><br>if anyone interested pls come​
    11·2 answers
  • Of the core elements of successful safety and health programs, Management Leadership, Worker Participation, and what else relate
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!