Answered step by step
Verified Expert Solution
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
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
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