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 relatively nonvolatile hydrocarbon oil contains 4.0 mol % propane and is being stripped by direct superheated steam in a strip
hram777 [196]

Answer:

Number of Trays = Six (6)

Explanation:

Given that: y' = 25x' , in terms of molecular ratio, we can write it as

\frac{Y'}{1 + Y'} =25 \frac{X'}{1 + X'}  ......... 1

after plotting this we get equilibrium curve as shown in the attached picture.

inlet concentration and outlet concentration of liquid phase is

x₂ = 4% = 0.04 (inlet)

so that can be converted into molar

X_2 = \frac{x_2}{1-x_2} = \frac{0.04}{1-0.04} = 0.04167

and

x₁ = 0.2% = 0.002

X_1 = \frac{x_1}{1-x_1} = \frac{0.002}{1-0.002} = 2.004*10^{-3}

Now we have to use the balance equation a

\frac{G_s}{L_s} = \frac{X_2-X_1}{Y_2-Y_1} .............. a

here amount of solute is comparably lower than

Here we have

L = 300 kmol (total)

L_s = 300(1 - 0.04) = 288 kmol pure oil

G = G_s = 11.42 kmol

Y_1 = 0 , solvent free steam

substitute into the equation a

\frac{11.42}{288} = \frac{0.04167 - 2*10^{-3}}{Y_2 - 0}

Y₂ = 1.0003

Now plot the point A(X₁ , Y₁) and B(X₂ , Y₂) and join them to construct operating line AB.

Starting from point B, stretch horizontal line up to equilibrium curve and from there again go down to operating line as shown in the picture attached. This procedure give one count of tray and continue the same procedure up to end of operating.

at last count, the number of stage, gives 6.

∴ <em>Number of trays = 6</em>

5 0
4 years ago
Read 2 more answers
In the idealized Otto cycle, heat is added during: a. Isentropic Compression b. Constant (minimum) volume c. Constant (maximum)
docker41 [41]

Answer:

(b) Constant (minimum) volume

Explanation:

In the idealized Otto cycle there are 4 process that are

  • Reversible adiabatic compression  
  • Addition of heat at constant volume
  • Reversible adiabatic expansion
  • Rejection of constant volume

So from above discussion we can see that heat is added when there is constant (minimum) volume which is given in option (b) so option (b) will be the correct answer

3 0
3 years ago
We have a credit charge that is trying to process but we do not remember signing up and email login is not working? Is there a w
Dmitry_Shevchenko [17]

Answer:

<u>Yes</u>

Explanation:

In such a case, one way to check the <em>credit charge</em> is to <u>contact your bank, </u>doing so would allow the bank to check your account properly to determine where the transaction was originated from.

Another way you could check is to contact the online merchant where such a transaction was initiated.

6 0
3 years ago
The symmetrical load below is connected to a three-phase network. A line current of 25A has been measured. The load resistors ha
boyakko [2]

Answer:

The line voltage of the three phase network is 346.41 V

Explanation:

Star Connected Load

Resistance, R₁ = R₂ = R₃ = 18 Ω

For a star connected load, the line current = the phase current, that is we have

I_L = 25 \, A =  I_{Ph}

Whereby the the voltage across each resistance = V_R is given by the relation;

V_R = I_{Ph} × R

Hence;

V_{Ph} = V_R = I_{Ph} × R  = 25 × 8 = 200 V

Therefore we have;

The line voltage, V_{L} = √3 × V_{Ph} = √3 × 200 = 346.41 V.

Hence, the line voltage of the three phase network = 346.41 V.

3 0
4 years ago
A 0.66 ft steel bar undergoes a stretch of 0.75 in in an axial direction. What is the strain? Use three significant figures (fou
Lapatulllka [165]

Answer:

The strain is 0.0947.

Explanation:

Strain is the ration of change in dimension to the original dimension under application of load. Depending upon load, the bar may stretch or compress. So, the strain can be negative in case of compression or positive in case of tension.

Step1

Given:

Original length of the steel bar is 0.66 ft or 7.92 in.

Stretch in the bar is of 0.75 in.

Calculation:

Step2

Strain is calculated as follows:

e=\frac{\bigtriangleup l}{l_{o}}

e=\frac{0.75}{7.92}

e = 0.0947

Positive sign is for stretching condition of the bar.

Thus, the strain is 0.0947.

8 0
3 years ago
Other questions:
  • A bearing uses SAE 30 oil with a viscosity of 0.1 N·s/m2. The bearing is 30 mm in diameter, and the gap between the shaft and th
    9·1 answer
  • In an experiment, one selected two samples of copper-silver alloy. One sample has 40 wt% of silver and 60wt% of copper and the o
    13·1 answer
  • Write an application named EnterUppercaseLetters that asks the user to type an uppercase letter from the keyboard. If the charac
    8·1 answer
  • * Write a recursive function that finds the index of s2 in s1. Do not use any * string functions except for .length(), .equals()
    12·1 answer
  • A tailgate may have a latch on both sides.<br> O True<br> O False
    10·2 answers
  • A compound cylinder is formed by shrinking a tube of 250 mm internal diameter and 25 mm wall thickness onto another tube of 250
    12·1 answer
  • 8. What is the purpose of the 300 Log?
    12·1 answer
  • What plane is this? and when was it made?
    11·1 answer
  • Technician A says the cooling system must be full for a pressure test to be effective. Technician B says the cooling system shou
    14·1 answer
  • 3. (5%) you would like to physically separate different materials in a scrap recycling plant. describe at least one method that
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!