Question: use a program visual studio community 2019 you can also use the textbook to refer, starting out with c++ from control structures through objects, 9/E
Create a C++ Console application with an output similar to a store receipt with five items. Declare five string variables to hold the names of the items and five numeric variables to hold the prices of the items. Create a constant variable to hold the tax percentage of 9.25% (0.0925). Add codes to calculate the subtotal, tax amount, and total cost. Tax amount is calculated by multiplying subtotal by tax percentage. Do not use the names in the example. Choose your own names for the items, but use the following prices for them: $12.95, $33.14, S4.32, 5.18, 23.99. Display a list of the items and their prices, subtotal, tax amount, and total. Do not worry if the numbers display more than two decimals. Your output will be similar to this. Of course, the names and prices are different. This is just an example. ary Data- This is just an example Shirt $28.99 Shoes $36.50 Socks $3.65 $22.95 $32.33 Belt Bag Subtotal Tax Total $124.42 $11.51 $135.93 Requirements: Add the following comments in the beginning of your codes. Your name, date, and purpose of the program Tell the user (viewer of the output) what he program does. Add more comments as you code. Follow all naming rules and conventions Do not use magic numbers in your codes (Use constants instead). Use proper data types. Dollar amounts are always floating points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
