Question: The following program first reads the swim level status 'swimLevel', entered by a user, of a person who wants to use a swimming pool and


The following program first reads the swim level status 'swimLevel', entered by a user, of a person who wants to use a swimming pool and keeps asking the user to reenter the swimLevel if the entered swim level status is not one of the following: L => Low, A => Average, H => High, E => Excellent. Then, it computes and displays the discounted price (to 2 decimals points) for a monthly usage of the swimming pool, according to the entered swim level status. Assume the original price is OMR 200 for a monthly usage of the swimming pool and assume that the program processes the conditions in the following order: 5% discount if the user's swimming level status is Low 10% discount if the user's swimming level status is Average 15% discount if the user's swimming level status is High 20% discount if the user's swimming level status is Excellent To solve the problem, drag and drop the appropriate statements shown below in the right missing parts of the program code above. NB: Some statements can be used more than once. while swimLevel.lower( not in 'L', 'A', 'H', 'E': print (" discounted Price %.2f" %discountedPrice) elif swimLevel.upper() == 'A': input("Enter your swimming level status: ") while swimLevel.upper() in 'L', 'A', 'H', 'E*: swimLevel = input("Enter your swimming level status:") while swim Level.upper not in LA, 'H', 'EX: else: while swimLevelinotin LAH elit swini Level uppero of swim Level uppero discountedPrice =0:15 ORIGINALPRICE discounted price 0.250 ORIGINRLPRICE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
