Create a structure named purchase each purchase contains an


Question: This is for a C++ programming class using the joyce farrel book.

Program: 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 sales amount, do not proceed until the user has entered a non-negative value.

Compute the sales tax as five percent of the purchase price. After a valid purchase object has been created display the objects invoice number, sales amount, and sales tax.

Please ensure you use only things that the object oriented programming using c++ book by joyce farrel. Please do not use code that would not have been learned yet and please keep it short and simple.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Create a structure named purchase each purchase contains an
Reference No:- TGS0952693

Expected delivery within 24 Hours