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
The base class Pet has attributes name and age. The derived class Dog inherits attributes from the base class Pet class and incl
Nonamiya [84]

Answer:

Explanation:

class Pet:

   def __init__(self):

       self.name = ''

       self.age = 0

   def print_info(self):

       print('Pet Information:')

       print('   Name:', self.name)

       print('   Age:', self.age)

class Dog(Pet):

   def __init__(self):

       Pet.__init__(self)

       self.breed = ''

def main():

   my_pet = Pet()

   my_dog = Dog()

   pet_name = input()

   pet_age = int(input())

   dog_name = input()

   dog_age = int(input())

   dog_breed = input()

   my_pet.name = pet_name

   my_pet.age = pet_age

   my_pet.print_info()

   my_dog.name = dog_name

   my_dog.age = dog_age

   my_dog.breed = dog_breed

   my_dog.print_info()

   print('   Breed:', my_dog.breed)

main()

3 0
3 years ago
You have a motor such that if you give it 12 Volt, it will eventually reach a steady state speed of 200 rad/s. If it starts from
Aleksandr [31]

Answer:

a) \frac{Ws}{Es}  = \frac{200}{1+1.2s}

b) attached below

c) type zero system

d) k > \frac{g}{200}

e) The gain K increases above % error as the  steady state speed increases

Explanation:

Given data:

Motor voltage  = 12 v

steady state speed = 200 rad/s

time taken to reach 63.2% = 1.2 seconds

<u>a) The transfer function of the motor from voltage to speed</u>

let ; \frac{K1}{1+St} be the transfer function of a motor

when i/p = 12v then steady state speed ( k1 ) = 200 rad/s , St ( time constant ) = 1.2 sec

hence the transfer function of the motor from voltage to speed

= \frac{Ws}{Es}  = \frac{200}{1+1.2s}

<u>b) draw the block diagram of the system with plant controller and the feedback path </u>

attached below is the remaining part of the detailed solution

c) The system is a type-zero system because the pole at the origin is zero

d) ) k > \frac{g}{200}

7 0
3 years ago
What is this spray pattern defect most likely caused by:
DiKsa [7]

Answer:

fluid nozzle that is too large

6 0
2 years ago
How is the fuel introduced into the Diesel engine?
Ugo [173]

Answer:

diesel fuel is pumped at high pressure to the injectors which are responsible for entering the fuel into the combustion chamber,

when the piston is at the top the pressure is so high that it explodes the fuel (diesel) that results in a generation of mechanical power

5 0
3 years ago
18
svp [43]

Answer:

серйозних порушень точності,

∵∴⊕∴∵

5 0
2 years ago
Other questions:
  • Is it more difficult to pump oil from a well on dry land or a well under water?Why?
    11·1 answer
  • What is meant by the thickness to chord ratio of an aerofoil?
    12·1 answer
  • The heat transfer surface area of a fin is equal to the sum of all surfaces of the fin exposed to the surrounding medium, includ
    6·1 answer
  • Technician A says that acid core solder should be used whenever aluminum wires are to be soldered.
    14·1 answer
  • Solve the inequality below.Use the drop-down menus to describe the solution and its graph.
    12·1 answer
  • What do you understand by the term phase angle?<br>​
    13·1 answer
  • When a company in the United States employs people in India to answer their customer service calls this is an example of
    9·1 answer
  • Draw the free-body diagram of the beam which supports the 80-kg load and is supported by the
    12·1 answer
  • 17
    14·1 answer
  • (i) what assumptions about the relationship between the inputs and output are inherent in this specification? do scatter plots s
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!