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.upper() not in 'L', 'A', 'H', 'E': if swimLevel.upper() == 'L': else: input("Enter your swimming level status:") elif swimLevel.upper() == 'A': swimLevel = input("Enter your swimming level status: ") elif swimLevel.upper() == 'H': while swimLevel.lower( not in 'L', 'A', 'H', 'E': print (" discounted Price = %.2f" %discountedPrice) while swimLevel not in 'L', 'A', 'H', 'E': while swimLevel.upper() in 'L', 'A', 'H', 'E': discountedPrice = 10 * ORIGINALPRICE discountedPrice = 0.05 * ORIGINALPRICE | discountedPrice = 0.10 * ORIGINALPRICE discountedPrice = 0.20 * ORIGINALPRICE discountedPrice = 15 * ORIGINALPRICE ORIGINALPRICE = 200 discountedPrice = 0.15 * ORIGINALPRICE discountedPrice = 5 * ORIGINALPRICE discounted Price = 20 * ORIGINALPRICE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
