Question: 1. Create an application in C++ which asks for the quantity and price of an item and gives the total price, integer variables are fine.

1. Create an application in C++ which asks for the quantity and price of an item and gives the total price, integer variables are fine.

2. Using the application from problem 1, allow the program to check for 0 or negative values and allow the user to reenter a positive quantity. (Using if/else if and else statements).

** Below is the code that I have written. I know that I am close and that I have some of the right parts, just need some tweaking to the order because it keeps throwing an exception to the variable "quantity". It keeps saying that I haven't initialized it. **

1. Create an application in C++ which asks for the quantity and

#include price; // User Enters Price 12 13 14 15 16 17 18 19 20 21 if (price > ) cout e) cout

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!