Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment Details CB 110 Programming in CakbaM SPRING 2021 - DEC Module 02 Lab (Sales Receipt) - SECT Instructions: Create a C++ Console application with

image text in transcribed
image text in transcribed
Assignment Details CB 110 Programming in CakbaM SPRING 2021 - DEC Module 02 Lab (Sales Receipt) - SECT Instructions: 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. SECT.. rs S- #21 NG... Do not use the names and the prices in the example. Choose your own names for the items. Use the following prices: $12.95, $33.14, $4.32, $5.18, and $23.99. Do not use meaningless variable names like item1 and item2. Use meaningful names for your variables, like shirt and shoes 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 image. Of course, the names and prices are different. This is just an example. S 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 This is just an example Shirt $28.99 Shoes $36.50 Socks $3.65 Belt $22.95 Bag $32.33 Subtotal Tax Total $124.42 $11.51 $135.93 Requirements: Add the following comments in the beginning of your codes. o Your name, date, and purpose of the program Tell the user (viewer of the output) what the 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

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions