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
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
2 years ago
The output side of an ideal transformer has 35 turns, and supplies 2.0 A to a 24-W device. Ifthe input is a standard wall outlet
Crank

Answer:

The current drawn from the outlet is 0.2 A

The number of turns on the input side is 350 turns

Explanation:

Given;

number of turns of the secondary coil, Ns = 35 turns

the output current, I_s = 2 A

power supplied, P_s = 24 W

the standard wall outlet in most homes = 120 V = input voltage

For an ideal transformer; output power = input power

the current drawn from the outlet is calculated;

I_pV_p = P_s\\\\I_p = \frac{P_s}{V_p} = \frac{24}{120} = 0.2 \ A

The number of turns on the input side is calculated as;

\frac{N_p}{N_s} = \frac{I_s}{I_p}  \\\\N_p = \frac{N_sI_s}{I_p} \\\\N_p = \frac{35 \times 2}{0.2} \\\\N_p = 350 \ turns

4 0
2 years ago
Match the scenario to the term it represents.
Ann [662]

Answer:

i nrfvewv

Explanation:

3 0
2 years ago
cThe Mars Rover Spirit got stuck in the Martian sand. The wheels kept slipping. Attempts to free it were futile. Discuss the typ
IgorC [24]

Answer:

Improved/ advanced types of Actuators include servo systems, create a large range of actuator motion in response to the changing needs of the operational environment or process.

Actuators are local or automated suppliers of working motion.

Hydraulic and air cylinders can be classified as single-acting cylinders, meaning that the energy source result in movement in one direction and a spring is used for the other direction.

Explanation:

An actuator control system is referred to as any electronic, electrical, or electromechanical system often used to activate an actuator, control the direction as well as extent and duration of its output. Actuator control systems could take the form of extremely simple, manually-operated, start-and-stop stations, either sophisticated or programmable computer systems. The more improved/ advanced types include servo systems that produce a large range of actuator motion in response to the changing needs of the operational environment or process. This type of actuator control system uses an interface arrangement that assimilates feedback from the process or mechanism and adjusts the actuator in the right way. Most actuator systems will include at least a set of travel limits that prevent the actuator destroying itself or the secondary mechanism.

Actuators are local or automated suppliers of working motion. They are used to changes, adjust, or move a secondary mechanism, where a physical operator cannot intervene directly. They are denoted by a large range of varying types using electrical and electromagnetic, hydraulic, or pneumatic power sources to create linear or rotary outputs. One element they all have in common is the actuator control system used to start, stop, and adjust the range, speed, and duration of the working motion.

Actuators can produce a linear motion, rotary motion or oscillatory motion which means they can create motion in one direction, in a circular motion or in opposite directions at regular intervals. Hydraulic and air cylinders can be classified as single-acting cylinders, meaning that the energy source result in movement in one direction and a spring is used for the other direction.

7 0
3 years ago
Think about how could you design, build, and test a light maze. What specific behavior of light will be essential to the success
Mrac [35]

Answer:

Reflection

Explanation:

The specific behavior of light that will be essential to ensure the success of your design is "Reflection". This is because light maze makes use of a mirror and it's the light that is reflected that we see with our eyes. Also, the manner in which light is reflected off objects will affect the colors that are reflected as well.

4 0
3 years ago
Other questions:
  • In Victorious, when everyone was trapped in the RV, who wasn’t? And what were they doing??
    10·1 answer
  • For a p-n-p BJT with NE 7 NB 7 NC, show the dominant current components, with proper arrows, for directions in the normal active
    14·1 answer
  • Hi, I have an assignment in which i needs to write a report on (Rationalization of electrical energy consumption) and i need cha
    6·1 answer
  • You talk with the owner and he likes the idea of using two large glulam beams as shown to carry the joist loads. Design the glul
    5·1 answer
  • A student lives in an apartment with a floor area of 60 m2 and ceiling height of 1.8 m. The apartment has a fresh (outdoor) air
    14·1 answer
  • A proposed embankment fill requires 7100 ft of compacted soil. The void ratio of the compacted fill is specified as 0.5. Four bo
    10·1 answer
  • Water flows through a converging pipe at a mass flow rate of 25 kg/s. If the inside diameter of the pipes sections are 7.0 cm an
    13·1 answer
  • A panel crimper cuts metal True or False
    10·1 answer
  • Which of the following maintenance items helps to ensure the vehicles engine lasts as long as possible?
    6·1 answer
  • "Transformer is used to change the voltage".
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!