int getItemNumber() {return itemNumber;}
int getQuantity() {return quantity;}
double getCost() {return cost;}
double getTotalCost() {return totalCost;}
};
int main()
{
int itemNumber;
int quantity;
double cost;
double totalCost;
char again;
cout << "Enter the Item Number: ";
cin >> itemNumber;
while (itemNumber < 0){
cout << "Please enter a positive value for the Item Number: ";
cin >> itemNumber;}
cout << "Enter the Quantity of the item: ";
cin >> quantity;
while (quantity < 0){
cout << "Please enter a positive value for the Quantity of the item: ";
cin >> quantity;}
cout << "Enter the Cost of the item: ";
cin >> cost;
while (cost < 0){
cout << "Please enter a positive value for the Cost of the item: ";
cin >> cost;}
totalCost = information.getTotalCost();
itemNumber = information.getItemNumber();
cost = information.getCost();
quantity = information.getQuantity();
cout << "The Item Number is: " << itemNumber << endl;
cout << "The Quantity is: " << quantity << endl;
cout << "The Cost is: " << cost << endl;
cout << "The Total Cost is: " << totalCost << endl;
// Ask user if they wish to perform another one
do{
cout << "Do you wish to perform another one? (Y / N)" << endl;
cin.ignore();
cin >> again;
system("CLS");
if ((again == 'N') || (again = 'n'))
exit(EXIT_SUCCESS);}
while (again == 'y' || again == 'Y');{
cin >> again;}