Question: write in c++ In this assignment, you need to demonstrate your ability in using input, output, data types, and if statement in C++ program. Assume

 write in c++ In this assignment, you need to demonstrate your

ability in using input, output, data types, and if statement in C++

program. Assume that you need write a C++ program for a cash

write in c++

In this assignment, you need to demonstrate your ability in using input, output, data types, and if statement in C++ program. Assume that you need write a C++ program for a cash register. There are only four items in the store: Cereal, $3.99 Milk, S3.99 Egg, S0.25 Water, $1.50 Once a customer purchases items, you will ask her/his how many of them are bought. The quantity can be in the range of 0-10 (including 0 and 10). Then, calculate total for this transaction. Later ask for payment method, which could be either Credit Card or Cash. Do not use string variables. Just use char variables, for instance "1" for Credit Card, "2" for Cash. If the payment method is CC, your program exits. If it is cash, and enter the amount received from customer. Then show the due amount the customer. An example scenario for a CC payment: Enter how many cereal boxes customer bought:2 Enter how many milk jars customer bought:1 Enter how many eggs customer bought:3 Enter how many water bottles customer bought:0 Total is $12.72 Payment Method: 1 Thanks.. An example scenario for a cash payment: Enter how many cereal boxes customer bought:1 Enter how many milk jars customer bought:0 Enter how many eggs customer bought:6 Enter how many water bottles customer bought:5 Total is $12.99 Payment Method: 2 Enter the amount received from customer: 20.00 Due amount is $7.01 Thanks... Tip: Don't use unnecessary libraries. You may use lese noints hecause of calling unused lihraries Tip: Don't use unnecessary libraries. You may use lose points because of calling unused libraries. Your code should start with comments as seen in following: // FIRSTNAME LASTNAME - Sep. 17, 2030 // CWID: 123456789 // Compiler: Visual Studio // Assignment Store /* This program calculates ... takes two int numbers Summarize your code functionality here

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!