Mini Quiz May 2

Some restaraunts provide a following nutrition information for each dish in the menu:

Assume that all data are integer numbers and all inputs are valid. Assume that all numbers in protein array are different.

Write a program that reads the number of dishes in the menu, and then amount of protein, amount of carbs and percentage of sodium for each dish.

Store nutrition information in THREE different arrays of integers: protein, carbs, sodium.

The program finds the meal that consists of 2 dishes that provides a largest amount of protein. The program outputs the position of the dishes in the array, total amount of protein in these two dishes, total amount of carbs and total amount of sodium.

Do your own function design. I will not take points off for the bad design, even if you will write everything in main, but try to write at least a few functions.

Example:

Input:
menu_size = 5
protein 5 10 3 6 12
carbs 4 5 6 7 12
sodium 10 12 20 15 5

Output
locations of dishes with 2 largest amounts of protein: 5, 2
total protein:22
total carbs: 17
total sodium: 17 percent of daily amount