Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use c++ visual studio! You are going to buy a new laptop. As a smart consumer, you are going to have to determine the
Please use c++ visual studio!
You are going to buy a new laptop. As a smart consumer, you are going to have to determine the actual price of the laptop and the how much you will pay for laptop. The total price of the laptop consists of four things: 1. The base price of the laptop 2. The cost of the RAM and hard drive upgrade 3. The disposal fee for the old laptop (for the lithium battery) 4. The state sales tax The disposal fee is constant for any laptop, regardless of the number of upgrades you select. This value is $12.50. The state sales tax is 6% of the total price of the laptop and the upgrades, there is no tax on the disposal fee. The down payment for the laptop is the 11% of the total cost of the laptop (purchase price + upgrades). The remaining amount will be financed. Note: the amount financed does not include the disposal fee and sales tax. These are paid separately at purchase time. Write a program that does the following: 1. Ask the user for the make and model of the laptop (for example Dell Inspiron 13). This should be at least two words. 2. Ask the user for the base price of the laptop. 3. Ask the user for the cost of the upgrades selected. 4. Calculate the sales tax. 5. Calculate the total cost (purchase price + upgrades + disposal fee + sales tax) 6. Calculate the down payment based on the (purchase price + upgrades). 7. Display the following: a. The make and model of the laptop b. The base price of the laptop C. The price of upgrades for the laptop d. The disposal fee for the laptop e. The sales tax for the laptop f. The total cost of the laptop g. The down payment for the laptop h. The total due at purchase time: Down payment + Sales tax + Disposal fee i. The total amount that will need to be paid after the down payment (finance amount) Remember: all the costs are in dollars, so each value needs to be displayed with a dollar sign ("$") and must be displayed to two decimal places. All the text should be left justified and all the costs should be right justified (with the decimal points lining up as shown in the sample output) Constants are required and need to be used for the various calculations. Determine what constants your will need. Be sure to get all the input then do all of the math (processing). Finally show all of the output. Use the test data below. Create screenshots of your program (like below) using both sets of test data. Remember to use your own name. Submit the.cpp code file and the screen shots (.docx) files in Canvas. Please enter the make and model of the laptop: Dell Inspiron 13 Enter the base price of the laptop: 1200 Enter the cost of laptop upgrades : 300 Make and Model: Dell Inspiron 13 $ $ Base Price: Upgrade Cost: Disposal Fee: Sales Tax: Total Cost: Downpayment: Total Due at Purchase: Finance Amount: $ $ 1200.00 300.00 12.50 90.00 1602.50 165.00 267.50 1335.00 $ $ Press any key to continueStep 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