Answer to Question #311925 in C++ for mey

Question #311925

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.

1
Expert's answer
2022-03-15T07:12:22-0400

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];
	}


}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment