Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

It is an emergency. I want an answer as soon as possible The following program first reads an integer age, entered by the user, and

It is an emergency. I want an answer as soon as possible image text in transcribed
image text in transcribed
The following program first reads an integer age, entered by the user, and keeps asking the user to reenter the age if the entered age is not between 18 and 120. Then it computes and displays the discounted price (to 2 decimals points) for daily renting the car, according to the entered age. Assume the original price is OMR 100 for daily renting a car and assume that the program processes the conditions in the following order: 5% discount if the age is above or equal to 18 and less then 24 10% discount if the age is above or equal to 24 and less than 30 15% discount if the age is above or equal to 30 and less than 40 20% discount if the age is above or equal to 40 2 portu elearn.squeducommodo E-learning System (Academic) 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. ellfage >= 30 and age 24 and age 120: print("discounted Price%21%discountedPrice) age = input("Enter your age: while age 120 elif age >= 30 and age = 18 and age

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions