Answered step by step
Verified Expert Solution
Link Copied!

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

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

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

More Books

Students also viewed these Databases questions

Question

=+Does the use of breakaway bases reduce the proportion of

Answered: 1 week ago