Question: Can somebody help me come up with a pseudocode for this program? It can't be the same as this post, I need a pseudocode that
Can somebody help me come up with a pseudocode for this program? It can't be the same as this post, I need a pseudocode that will relate to this program as part of my computer programming class.
def ch(a): if a == 1: r= float(input('Enter the radius:')) area =3.14*r*r print('The area of the circle is %0.2f' %area) elif a == 2: l= float(input('Enter the length:')) b= float(input('Enter the breadth:')) area =l*b print('The area of the rectangle is %0.2f' %area) elif a == 3: h= float(input('Enter the height:')) b= float(input('Enter the base:')) area =0.5*h*b print('The area of the triangle is %0.2f' %area) else: print (exit)
print('Geometry Calculator ') print('1 Calculate the Area of Circle ') print('2 Calculate the Area of Rectangle ') print('3 Calculate the Area of Triangle ') print('4 Quit ') a= int(input('Enter your Choice:')) ch(a)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
