Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Order LIUNT U Computer Scienc The following program first reads the swim level status 'swimLevel, entered by a user, of a person who wants to
Order
LIUNT U Computer Scienc 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 discount if the user's swimming level status is Low 5% discount if the user's swimming level status is Average 10%. discount if the user's swimming level status is High 15% discount if the user's swimming level status is Excellent 20% 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 in 'L'. 'A.'H'.'E print(" discounted Price = %.2f" %discountedPrice) else 'elif swimLevelupper() == 'A : elif swimLevel upper == 'H + while swimlevel not in L. 'N, 'H'. 'E : 'if swimLevel upper() == 'L swimLevel = input("Enter your swimming level status: 7 while swimLevel upper() not in L': 'H','E : while swimLevel lower not in 'L. A 'H'. 'E input("Enter your swimming level status:") discounted Price = 0,10 . ORIGINALPRICE discountedPrice = 15 ORIGINALPRICE discountedPrice = 0.15 . ORIGINALPRICE ORIGINALPRICE = 200 discountedPrice =0.05 ORIGINALPRICE discountedPrice = 0.20 ORIGINALPRICE discountedPrice = 20 ORIGINALPRICE discountedPrice = 10 ORIGINALPRICE discountedPrice = 5* ORIGINALPRICEStep 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