A Car rental company charges 2.00 AED/mile if the total mileage does not exceed 100 miles....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A Car rental company charges 2.00 AED/mile if the total mileage does not exceed 100 miles. If the total mileage is over 100 miles but below 200 miles, the company charges 2.00 AED/mile for the first 100 miles, then it charges 1.50 AED/mile for any additional mileage over 100. If the total mileage is over 200 miles, the company charges 2.00 AED/mile for the first 100 miles, 1.50 AED/mile for additional mileage between 100 and 200, then it charges 1.00 AED/mile for any additional mileage over 200. Write a program that uses if-else if-else statement to be used by the clerk to enter the number of miles and get the total price owed. For miles = 98, owed rental = 196. For miles = 250, owed rental = 400. A Car rental company charges 2.00 AED/mile if the total mileage does not exceed 100 miles. If the total mileage is over 100 miles but below 200 miles, the company charges 2.00 AED/mile for the first 100 miles, then it charges 1.50 AED/mile for any additional mileage over 100. If the total mileage is over 200 miles, the company charges 2.00 AED/mile for the first 100 miles, 1.50 AED/mile for additional mileage between 100 and 200, then it charges 1.00 AED/mile for any additional mileage over 200. Write a program that uses if-else if-else statement to be used by the clerk to enter the number of miles and get the total price owed. For miles = 98, owed rental = 196. For miles = 250, owed rental = 400.
Expert Answer:
Answer rating: 100% (QA)
Certainly Heres a Python program that calculates the total price owed based on the number of mil... View the full answer
Related Book For
Database Systems Design Implementation and Management
ISBN: 978-1337627900
13th edition
Authors: Carlos Coronel, Steven Morris
Posted Date:
Students also viewed these programming questions
-
USA Fill out a Form 1041, and any other form or schedule that should be prepared for Dolly White Children's Trust's 2021 taxes with the following information. This is the only info provided and...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Name one industry (retail, technology, biopharma, etc) that you find interesting and compelling and state why it attracts your interest. Lookup a public company in that industry - Who is it? Look at...
-
The floor beams AB and BC are stiffened using the two tie rods CD and AD. Determine the force along each rod when the floor beams are subjected to a uniform load w. Assume the three contacting...
-
What does a projected income statement for maple leaf hardware ltd. look like?
-
Table B. 15 presents data on air pollution and mortality. Use the all-possibleregressions selection on the air pollution data to find appropriate models for these data. Perform a thorough analysis of...
-
Montrose Manufacturing is considering two potential investments. Each project will cost $ 115,000 and have an expected life of five years. The CFO has estimated the probability distributions for each...
-
An underground fire service main in a methanol plant consists of glass reinforced plastic material. The piping is rated for 200 psi. The pump's churn pressure is rated at 280 psi. Numerous leaks have...
-
Jack Tasker opened his Auto Repair Shop in November 2023. The balance sheet at November 30, 2023, prepared by an inexperienced part-time bookkeeper, is shown below. Required Prepare a correct balance...
-
Hello Bhd bought 80% of the share capital of Kitty Bhd for RM1,240,000 on January 1, 2019. At that date Kitty Berhad's retained earnings stood at RM200,000. The statements of financial position at 31...
-
If two planets have the same mass, but \(A\) has twice the radius of \(B\), determine what the ratio of the accelerations of gravity is worth \(g_{A} / g_{B}\).
-
Show that if the magnitudes of the sum and difference between two vectors are equal, then the vectors are perpendicular to each other.
-
Show that the force field expressed in spherical coordinates \(\mathbf{F}=f(r, \theta) \mathbf{r}\) is conservative if and only if the function \(f\) is independent of \(\theta\).
-
The equation of motion of a material point is expressed by the relation \(x(t)=\alpha t^{3}-\beta t^{2}-\gamma\), with the constants \(\alpha, \beta, \gamma\) real positive. Determine velocity and...
-
A particle moves in uniformly accelerated motion on a straight line. After \(t_{1}=4 \mathrm{~s}\) it has traveled \(60 \mathrm{~m}\) and has a velocity \(v_{1}=33 \mathrm{~m} / \mathrm{s}\)....
-
Reverse the order of integration in the following integral. 100 y S S x 0 y/10 f(x,y) dx dy Choose the correct reversed integral below. OA. 10x 10 S S f(x,y) x0 f(x,y) dy dx O C. 100 10x S f(x,y) dy...
-
Write the statement to store the contents of the txtAge control in an Integer variable named intAge.
-
Based on the following query: SELECT P_CODE, P_DESCRIPT, P_PRICE, PRODUCT.V_CODE, V_STATE FROM PRODUCT P, VENDOR V WHERE P.V_CODE = V.V_CODE AND V_STATE = NY AND V_AREACODE = 212; ORDER BY P_PRICE;...
-
Create an Order data entry screen, using the ORDERS and ORDER_LINE tables in the RobCor database. (To complete this problem successfully, you should know how to use frames and ColdFusion tags. Please...
-
Why is the organizational structure relevant to the database designer?
-
What is the current ratio? A. 0.2 B. 2.0 C. 1.7 D. 0.8 E. 1.2 Using the following balance sheet and income statement Balance sheet m Property 200 Trade payables Plant and equipment 300 Tax due Other...
-
What is the quick (acid test) ratio? A. 0.9 B. 4.8 C. 0.8 D. 0.2 E. 1.7 Using the following balance sheet and income statement Balance sheet m Property 200 Trade payables Plant and equipment 300 Tax...
-
What is the receivables holding period? A. 21.6 days. B. 8 times. C. 19.4 days. D. 4.7 times. E. 28.2 days. Using the following balance sheet and income statement Balance sheet m Property 200 Trade...
Study smarter with the SolutionInn App