Question: Answer using C++ Write a program that will calculate the final sales price of a motorcycle; this includes additional optional packages along with sales tax.

Answer using C++

Write a program that will calculate the final sales price of a motorcycle; this includes additional optional packages along with sales tax. You may assume that the base? price of the motorcycle is $30,000. First you must ask the user to choose which optional packages they want. The user is only permitted to choose one package. Your program should display a menu of the available packages. The user should enter the package by entering the letter associated with it?. A - Basic Model (+$0.00) B - All-Wheel Drive ($1,500) C - Sport Package (+$2,500) D - Luxury (+3,000) E - Automatic (+10,000) If the user enters an invalid letter, you must continue asking them? to enter a letter until they enter a valid choice. Once theyve entered a valid letter, then ask them for the sales tax rate in their state. You should clearly indicate if they should enter, for example, 7 or 0.07 for a 7% sales tax. Finally, your program should compute the final sales price as the base price, plus the price of the chosen package, all multiplied by 1 + sales tax rate. For example, if the user chooses option D and there is a sales tax of 5%, then the final price would be $35,000 * 1.05 = $36,750. Your printout need not include , placeholders, but should be limited to two decimal places to indicate proper dollars/cents notation.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!