Question: Checkout Lab C++ Programming Create a rough check system that does the following: One function that takes in the price and quantity of an item

 Checkout Lab C++ Programming Create a rough check system that does

Checkout Lab C++ Programming Create a rough check system that does the following: One function that takes in the price and quantity of an item and calculates the total (for example: 1.75 price and 4 quantity if $7) give the option to take in more items based on the users input. Return the total to main e One function that takes in the total from the first function and outputs the total including a 5% tax. Return the new total to main function that takes in coupon codes as integers -if the code ends in a 1, the total is 50% off, if the code ends in a 5, the total is $5 off. Return that amount and output it. Remember, no item prices (or totals after coupons) should be negative-consider adding some error checking and avoid these issues

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!