import circle
import rectangle
choice = 0
ch = "y"
while (ch == "y"):
print("MENU")
print("1. area of circle ")
print("2. circumference of a circle")
print("3. area of recangle")
print("4. perimeter of a rectangle")
print("5. quit")
choice = int(input ("enter your choice:"))
if (choice == 1):
radius = int(input ("enter the circle's radius: "))
print("the area is ",circle.area(radius))
elif (choice==2):
radius = int(input ("enter the circle's radius: "))
print("the circumference is",circle.circumference (radius))
elif (choice == 3):
width = int(input ("enter the rectangle's width: "))
length = int(input ("enter the rectangle's length: "))
print("the area is",rectangle.area(width,length))
elif (choice == 4):
width = int(input ("enter the rectangle's width: "))
length = int(input ("enter the rectangle's length: "))
print("the perimeter is",rectangle.perimeter(width,length))
elif (choice == 5):
print("exiting the program ....")
else:
print ("error: invalid selection.")
# this program allows a user to choose various calculations.
# MEMBER ALIASING (topic).
# PG.(9.10 OF TEXTBOOK.).
PLEASE FIND THE MISTAKE IN THIS PROGRAM!!
Answers
Answered by
3
Answer:
ON WHICH PROGRAMMING LANGUAGE IS THE PROGRAM BEING DONE.
IF IN JAVA THEN THERE IS A LOT OF MISTAKE...
HOPE THE ANSWER HELPS YOU.
PLEASE MARK ME AS BRAINLEAST.....☺️☺️
Similar questions