Create a structure named Purchase. Each Purchase contains an invoice number,
amount of sale, and amount of sales tax. Create a main()method that declares a
Purchase object and prompts the user for purchase details. When you prompt for an
invoice number, do not let the user proceed until a number between 1000 and 8000 has
been entered. When you prompt for a sale amount, do not proceed until the user has
entered a non-negative value. Compute the sales tax as 5 percent of the purchase price.
After a valid Purchase object has been created, display the object’s invoice number, sale
amount, and sales tax. Save the file as CreatePurchase.cpp.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here