Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ take a look at the output screen Description: For this assignment you build upon your first assignment by adding new functionality. This week, you

C++

image text in transcribed

image text in transcribed

take a look at the output screen

Description: For this assignment you build upon your first assignment by adding new functionality. This week, you will allow customers to make a purchase at your store. Customers who pay in cash will receive a 10% discount and customers who pay with card will be charged a 15% finance fee. You must ask the customer how many of each of your items they would like to buy and display a bill for cash payment and financed payment with any fees or discounts shown. You will also need to create a flow chart and two sets of test data for this program. The test data values should match your console output screenshot. Requirements: VE 1. Use variables of the appropriate type for all values. E.g constant for tax rate (.075), cash discount (10%), and finance charge (15%). 2. Variable names must be descriptive. Use additional variables as needed for subtotals, finance/discount/tax amounts etc. You must display values by using cout to call your variables - no hard coding or literal values The cash discount should be subtracted from the subtotal. The finance charge should be added to the subtotal. Every customer should be shown an itemized bill that includes: subtotal, tax amount, cash discount/finance fee amount, new subtotal call fees/discounts applied) and average price per item. 7 Display how much the customer would save per item if they paid with cash. HINT: This is the Or better Body Body Wash priced at $4.5 each. 6 bottles of Smoothing Anti-Frizz Shampoo priced at $3.5 each. How many bars of Squeaky-Clean-Soap would you like to purchase? 1 How many bottles of Better-Body Body Wash would you like to purchase? 2 How many bottles of Smoothing Anti-Frizz Shampoo would you like to purchase? 3; w*w*w* CASH BILL ~*~** Total Price Before Discount: $21.75 Tax Amount: $1.63 Discount amount: $2.18 Subtotal with tax & discount: $21.21 Average cost per item: $3.53 w*w*w* CARD BILL wiwinin Total Price Before Finance Charge: $21.75 Tax Amount: $1.63 Finance charge amount: $3.26 Subtotal with tax & Finance fee: $26.64 Average price per item: $4.44 If you pay with cash, you would save 0.91 per item. Thank you for shopping with us! Have a great day

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

Recommended Textbook for

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

Students also viewed these Databases questions