231k views
3 votes
Assignment 2: Room area

2 Answers

6 votes

Answer:

a = float(input("Enter side A: "))

b = float(input("Enter side B: "))

c = float(input("Enter side C: "))

d = float(input("Enter side D: "))

e = float(input("Enter side E: "))

area1 = (b)*(c)

area2 = (d-e)*(a-c)

area3 = (0.5)*(a-c) *(e)

print("Room Area: " + str(area1 + area2 + area3))

Step-by-step explanation:

i got a 100, i hope it helps

User Brad Davis
by
4.8k points
6 votes

Answer:

a = float(input("Enter Side A: "))

b = float(input("Enter Side B: "))

c = float(input("Enter Side C: "))

d = float(input("Enter Side D: "))

e = float(input("Enter Side E: "))

area1 = 1.0* a * b

area2 = (a - c) * (d - e -b)

area3 = 0.5 * (a - c) * e

print ("Room Area: " + str(area1 + area2 + area3))

Step-by-step explanation:

happy to help ^3^

User CheesyMan
by
4.2k points