Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 15 Not yet answered Marked out of 1.75 The following program first reads the swim level status swimLevel', entered by a user of a
Question 15 Not yet answered Marked out of 1.75 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 Flag question . . 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. 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. *** if swimLevel.upper == L': elif swimLevel.upper() == 'A: while swim Level.upper in 'L'A, 'H'E': input("Enter your swimming level status: while swimLevel.upper not in 'L', 'A', 'H', 'E': else: while swim Level.ower() not in L', 'A, 'H'E : print(" discounted Price = %.27 %discounted Price) swimLevel = input("Enter your swimming level status: while swim Level not in 'L','A', ' HE: elif swimLevel.upper() == "H": discounted Price = 5 ORIGINALPRICE ORIGINALPRICE = 200 discountedPrice = 20 ORIGINALPRICE discounted Price = 0.05 ORIGINALPRICE discounted Price = 15. ORIGINALPRICE discounted Price = 0.15 - ORIGINALPRICE || discountedPrice = 0.20 * ORIGINALPRICE discountedPrice = 10. ORIGINALPRICE discountedPrice = 0.10 - ORIGINALPRICE
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started