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
Water flows through a pipe at an average temperature of T[infinity] = 70°C. The inner and outer radii of the pipe are r1 = 6 cm
Paul [167]

Answer:

The differential equation and the boundary conditions are;

A) -kdT(r1)/dr = h[T∞ - T(r1)]

B) -kdT(r2)/dr = q'_s = 734.56 W/m²

Explanation:

We are given;

T∞ = 70°C.

Inner radii pipe; r1 = 6cm = 0.06 m

Outer radii of pipe;r2 = 6.5cm=0.065 m

Electrical heat power; Q'_s = 300 W

Since power is 300 W per metre length, then; L = 1 m

Now, to the heat flux at the surface of the wire is given by the formula;

q'_s = Q'_s/A

Where A is area = 2πrL

We'll use r2 = 0.065 m

A = 2π(0.065) × 1 = 0.13π

Thus;

q'_s = 300/0.13π

q'_s = 734.56 W/m²

The differential equation and the boundary conditions are;

A) -kdT(r1)/dr = h[T∞ - T(r1)]

B) -kdT(r2)/dr = q'_s = 734.56 W/m²

6 0
3 years ago
Select four types of engineers who might be involved in the development of a product such as an iPhone.
Bas_tet [7]

Answer:

electrical

computer

mechanical

and manufacturing .... I think

4 0
3 years ago
Read 2 more answers
tech A says that a Hall-effect sensor can be used in an electronic ignition system. Tech B says that an optical-type sensor can
Alex

Answer:

<em>Both Tech A and Tech B are correct.</em>

<em>Explanation:</em>

<em>The Hall effect sen sensor are used to control displacements and rotations of various body components  of the vehicles, engine vibrations , and the ignition   system</em>

<em>The  optical-type sensor converts rays of light  into electronic signals. It measures the quantity physically of which the translates to a form that is understandable or readable  by an instrument. An optical sensor is larger part of a  system that integrates light sources, a device for measuring  and the optical sensor, which therefore is usually  connected to an electrical trigger.</em>

6 0
3 years ago
For unrestrained cube made from linear, isotropic, homogeneous material the temperature increase causes strain in_____ direction
LenKa [72]

Answer: The answer is four; four

Explanation: This is because of the mixture of material used and the number of directions it causes strain I directly proportional to the number of times it causes stress.

7 0
3 years ago
How high a building could fire hoses effectively spray from the ground? Fire hose pressures are around 1 MPa. (It is also said t
Mrac [35]

Answer:

z_{2} = 91.640\,m

Explanation:

The phenomenon can be modelled after the Bernoulli's Principle, in which the sum of heads related to pressure and kinetic energy on ground level is equal to the head related to gravity.

\frac{P_{1}}{\rho\cdot g} + \frac{v_{1}^{2}}{2\cdot g}= z_{2}+\frac{P_{2}}{\rho\cdot g}

The velocity of water delivered by the fire hose is:

v_{1} = \frac{(300\,\frac{gal}{min} )\cdot(\frac{3.785\times 10^{-3}\,m^{3}}{1\,gal} )\cdot(\frac{1\,min}{60\,s} )}{\frac{\pi}{4}\cdot (0.3\,m)^{2}}

v_{1} = 0.267\,\frac{m}{s}

The maximum height is cleared in the Bernoulli's equation:

z_{2}= \frac{P_{1}-P_{2}}{\rho\cdot g} + \frac{v_{1}^{2}}{2\cdot g}

z_{2}= \frac{1\times 10^{6}\,Pa-101.325\times 10^{3}\,Pa}{(1000\,\frac{kg}{m^{3}} )\cdot(9.807\,\frac{m}{s^{2}} )} + \frac{(0.267\,\frac{m}{s} )^{2}}{2\cdot (9.807\,\frac{m}{s^{2}} )}

z_{2} = 91.640\,m

7 0
3 years ago
Other questions:
  • What is the damped natural frequency (in rad/s) of a second order system whose undamped natural frequency is 25 rad/s and has a
    15·1 answer
  • What is the stress concentration factor of a shaft in torsion, where D=1.25 in. and d=1 in. and the fillet radius is, r=0.2 in.a
    7·1 answer
  • Ammonia enters an adiabatic compressor operating at steady state as saturated vapor at 300 kPa and exits at 1400 kPa, 140◦C. Kin
    11·1 answer
  • Technician A says a basic circuit problem can be caused by something in the circuit that increases voltage. Technician B says a
    8·1 answer
  • The lattice constant of a simple cubic primitive cell is 5.28 Å. Determine the distancebetween the nearest parallel ( a ) (100),
    13·1 answer
  • /* Function findBestVacation * duration: number of vacation days * prefs: prefs[k] indicates the rate specified for game k * pla
    14·1 answer
  • View the picture below and then correctly answer the questions using the following words: Temperate Zone, Tropical Zone, Polar Z
    6·2 answers
  • Since you became discouraged not being able to find a job in the San Diego area, you enlarged the area in which you looked for a
    9·1 answer
  • Write down the three formula to find the three types of slope of curve Q with respect to L.
    5·2 answers
  • The toggle (t) flip-flop has one input, clk, and one output, q. on each rising edge of clk, q toggles to the complement of its p
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!