Create a program that will input the amount and quantity of three types of categories, such as Beverages, Fruits, and Canned Goods. Each category has three types of items. You’ll need to input the amount and quantity of the three items in each of the categories then compute the total price and amount due, respectively.
Here is program:
int main()
{
string Beverages[3]{};
int Amounts;
int Quantity;
string Fruits[3]{};
string CannedGoods[3]{};
for (int i = 0; i < 3; i++)
{
cout << "Enter Beverages: " << endl;
cin >> Beverages[i];
cout << "Enter Fruits: " << endl;
cin >> Fruits[i];
cout << "Enter Canned Googs: " << endl;
cin >> CannedGoods[i];
}
}
Comments
Leave a comment