Start
print("1 - Pine, 2 - Oak, 3 - Mahogany")
Integer choice = readValue()
Integer price
IF choice => 1 AND choice <=3 THEN
   IF choice == 1 THEN
   print("Pine table cost 120$")
   price = 120
   ELSE IF choice == 2 THEN
   print("Oak table cost 325$")
   price = 325
   ELSE
   print("Mahogany table cost 420$")
   price = 420
   END IF
   print("1 - Large Table, 2 - Small Table")
   choice = readValue()
   IF choice == 1 THEN
   price = price + 50
   ELSE IF choice != 2 THEN
   print("The size is invalid")
   END IF
ELSE
print("Invalid input")
price = 0
END IF
End
I did as indicated in the instruction.
Comments
Leave a comment