Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started