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]
2 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]2 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
What do you mean by searching?​
nikitadnepr [17]

Answer:

thoroughly scrutinizing, especially in a disconcerting way.

Explanation:

8 0
3 years ago
Calculate the volume of a hydraulic accumulator capable of delivering 5 liters of oil between 180 and 80 bar, using as a preload
Vinil7 [7]

Answer:

1) V_o = 10 liters

2) V_o = 12.26 liters

Explanation:

For isothermal process n =1

V_o =\frac{\Delta V}{(\frac{p_o}{p_1})^{1/n} -(\frac{p_o}{p_2})^{1/n}}

V_o  = \frac{5}{[\frac{72}{80}]^{1/1} -[\frac{72}{180}]^{1/1}}

V_o = 10 liters

calculate pressure ratio to determine correction factor

\frac{p_2}{p_1} =\frac{180}{80} = 2.25

correction factor for calculate dpressure ration  for isothermal process is

c1 = 1.03

actual \ volume = c1\times 10 = 10.3 liters

b) for adiabatic process

n =1.4

volume of hydraulic accumulator is given as

V_o =\frac{\Delta V}{[\frac{p_o}{p_1}]^{1/n} -[\frac{p_o}{p_2}]^{1/n}}

V_o  = \frac{5}{[\frac{72}{80}]^{1/1.4} -[\frac{72}{180}]^{1/1.4}}

V_o = 12.26 liters

calculate pressure ratio to determine correction factor

\frac{p_2}{p_1} =\frac{180}{80} = 2.25

correction factor for calculate dpressure ration  for isothermal process is

c1 = 1.15

actual \volume = c1\times 10 = 11.5 liters

8 0
3 years ago
Express the following quantities to the nearest standard prefix using no more than three digits.(a) 20,000,000 Hz(b) 1025 W(c) 0
bija089 [108]

Answer:

(a) 20 MHz

(b) 1.025 KW

(c) 3.33 ns

(d) 33 pF

Explanation:

(a) 20,000,000 Hz = 20 x 10^6 Hz = 20 Mega Hz = <u>20 MHz</u>

(b) 1025 W = 1.025 x 10^3 W = 1.025 Kilo W = <u>1.025 KW</u>

(c) 0.333 x 10^(-8) s = 3.33 x 10^(-9) s = 3.33 nano s = <u>3.33 ns</u>

(d) 33 x10^(-12)F = 33 pico F = <u>33 pF</u>

8 0
3 years ago
A rigid 14-L vessel initially contains a mixture of liquid water and vapor at 100°C with 12.3 percent quality. The mixture is th
tigry1 [53]

Answer:

Q = 65.388 KJ

Explanation:

To calculate the heat required for the given process Q, we recall the energy balance equation.

Therefore, : Q = Δ U = m (u₂ - u₁) ..................equation (1)

We should note that there are no kinetic or potential energy change so the heat input in the system is converted only to internal energy.

Therefore, we will start the equation with the mass of the water (m) using given the initial percentage quality as x₁ = 0.123 and initial temperature t₁ = 100⁰c , we can them determine the initial specific volume v₁ of the mixture. For the calculation, we will also need the specific volume of liquid vₙ  = 0.001043m³/kg and water vapour (vₐ) = 1.6720m³/kg

Therefore, u₁ = vₙ + x₁ . ( vₐ - vₙ)

                   u₁ = 0.001043m³/kg + 0.123 . ( 1.6720m³/kg - 0.001043m³/kg)

                   u₁ = 0.2066m³/kg

Moving forward, the mass of the vapor can then be calculated using the given volume of tank V = 14 L but before the calculation, we need to convert the volume to from liters to m³.

Therefore, V = 14L . 1m² / 1000L = 0.014 m³

Hence, m = V / u₁

                 0.014m³ / 0.2066 m³/kg

              m = 0. 0677 kg

Also, the initial specific internal energy u₁ can be calculated using the given the initial given quality of x₁ , the specific internal energy of liquid water vₐ = 419.06 kj / kg and the specific internal energy of evaporation vₐₙ = 2087.0 kj/kg.

Therefore, u₁ = vₐ + x₁ . vₐₙ

                   u₁ = 419.06 kj / kg + 0.123  .  2087.0 kj/kg

                    u₁ = 675.76 kj/kg

For the final specific internal energy u₂, we first need to calculate the final quality of the mixture x₂ . The tank is rigid meaning the volume does not change and it is also closed meaning the mass does not change.from this, we can conclude the the specific volume also does not change during the process u₁ = u₂. This allows us to use the given final temperature T₂ = 180⁰c to determine the final quality x₂ of the mixture. for the calculation, we will also need the specific volume of liquid vₙ=0.001091m³/kg and vapor vₐ =  0.39248m³/kg

Hence, x₂ = u₂ - vₙ / uₐ

x₂ = 0.2066 m³/kg - 0.001091m³/kg / 0.39248m³/kg

x₂ = 0.524

Moving forward to calculate the final internal energy u₂, we have :

u₂ = vₙ + x₂ . vₙₐ

u₂ = 631.66 kj/kg + 0.524  . 1927.4 kj/kg

u₂ = 1641.62 kj/kg

We now return to equation (1) to plug in the values generated thus far

Q = m (u₂ - u₁)

0. 0677 kg ( 1641.62 kj/kg - 675.76 kj/kg)

Q = 65.388KJ

7 0
3 years ago
Read 2 more answers
Which of the following behaviors should be avoided? Check all of the boxes that apply.
Ahat [919]

Answer:

c,d,e

Explanation:

rude, so you can keep safe and so you can really learn

7 0
2 years ago
Read 2 more answers
Other questions:
  • a. A crude oil pipe’s radius is reduced by 5%. What is the corresponding percentage change in the pressure drop per unit length?
    8·1 answer
  • Consider two electrochemical reaqctions. Reaction A results in the transfer of 2 mol of electrons per mole of reactant and gener
    14·2 answers
  • 1. How does manufacturing help strengthen<br> the economy?
    15·1 answer
  • Consider the experiment of Problem 1.27, in which a frictionless puck is sliding straight across a rotating turntable through th
    10·1 answer
  • List five things the welding symbol will tell the welder about the weld that is to be made.​
    13·1 answer
  • Write a script (Program 2) to perform t he following matrix operations. Use output commands to clearly output each problem with
    15·1 answer
  • Please choose a specific type of stability or control surface (e.g., a canard) and explain how it is used, what it is used for,
    5·1 answer
  • Why do you suppose a value of 5 is used? Do you think other values might work?
    6·1 answer
  • A college student volunteers with the elderly in a hospice program and discovers her clients complain of dry skin. She has an id
    13·2 answers
  • A driver complains that his front tires are wearing
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!