Computer Science, asked by Malembi221, 1 year ago

Assignment 2: Room Area edhesive

Answers

Answered by eburcham58
326

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))

Explanation:

THERE YOU GO

Answered by issakhang
51

Answer:

sideA = int(input("Enter side A: "))

sideB = int(input("Enter side B: "))

sideC = int(input("Enter side C: "))

sideD = int(input("Enter side D: "))

sideE = int(input("Enter side E: "))

red = (sideA * sideB)

blue = ((sideD - sideB - sideE) * (sideA - sideC))

green = (0.5 * sideE * (sideA - sideC))

answer = float(red + blue + green)

answer = str(answer)

print("Room Area: " + answer)

Explanation:

your welcome hehe

Similar questions