while(choice=='Y') {
cout<<"\nPlease enter the amount of the item";//outputs price
cin>>amount;//reads price input
cout<<"\nPlease enter the weight of the item";
cin>>weight;//reads the weight from user
bTax+=amount;//calculates price to total
totalWt+=weight;//calculates total weight
cout<<"\nEnter information on an item? Y or N";
}
return;
}
Edited by lva28, 30 November 2011 - 03:58 PM.


Sign In
Create Account

Back to top









