Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Fuel Reward Points Develop a program that calculates charges for a fuel reward points subscription. Subscription A is the most affordable if you plan on

image text in transcribed

Fuel Reward Points Develop a program that calculates charges for a fuel reward points subscription. Subscription A is the most affordable if you plan on driving less than 1000 miles, however, if you drive over 1000 miles, you are charged for each mile after that. Subcription B is if you plan on driving over 5000 miles, and you are charged for each mile after. Subscription C is for unlimited miles, you just have to pay a higher flat fee The program will require some validity checking * * The user must enter a character corresponding to the chosen subscription. If any character other than ('A', 'a', 'B', 'b', 'C', or 'c') is input then the program displays an appropriate message and will prompt the user for a new plan selection. The program will continue to prompt the user until a valid plan is selected. You may assume that the user will only enter a single character. The user must input the number of miles used; it must be between 0 and 30,000 (inclusive). If a value outside of this range is input then the program provides an appropriate message and will request a new entry. You may assume that the user will only enter integer numbers o o The plan details are as follows: Package Base Price $50 $100 $250 Additional Fees $.03 for each mile after 1000 miles S.01 for each mile after 5000 miles Unlimited data The program will let the user know how much money they save by upgrading. (plan A to B, C to A, etc.) and will display the potential savings of switching. The factor for upgrades is as follows: Package Decision point $100 $250 $250 Cost savings cost of A cost of B cost of A cost of GC cost of B cost of

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

For a given aqueous solution, if [H+] = 7.92 105 M, what is [OH]?

Answered: 1 week ago