
David W. answered 02/14/18
Tutor
4.7
(90)
Experienced Prof
The following was created as a flow chart in Flowgarithm (free download) which generated Python code:
print("Please enter child's age: ")
Age = int(input())
print("Please enter child's height in centimeters: ")
Height = int(input())
if Age >= 12 and Height >= 150:
print("Qualified.")
else:
print("Will parents sign a waiver? (Enter Y/N): ")
Waiver = input()
if Waiver == "y" or Waiver == "Y":
print("Qualified by waiver.")
else:
print("Not qualified.")
Age = int(input())
print("Please enter child's height in centimeters: ")
Height = int(input())
if Age >= 12 and Height >= 150:
print("Qualified.")
else:
print("Will parents sign a waiver? (Enter Y/N): ")
Waiver = input()
if Waiver == "y" or Waiver == "Y":
print("Qualified by waiver.")
else:
print("Not qualified.")