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. **

#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
