Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 image text in transcribed
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

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_2

Step: 3

blur-text-image_3

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

Advances In Spatial And Temporal Databases 10th International Symposium Sstd 2007 Boston Ma Usa July 2007 Proceedings Lncs 4605

Authors: Dimitris Papadias ,Donghui Zhang ,George Kollios

2007th Edition

3540735399, 978-3540735397

More Books

Students also viewed these Databases questions

Question

3. Comment on how diversity and equality should be managed.

Answered: 1 week ago

Question

describe the legislation that addresses workplace equality

Answered: 1 week ago