Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Declare a structure called SoftDrink which contains the three members mentioned

ID: 3625453 • Letter: D

Question

Declare a structure called SoftDrink which contains the three members mentioned in the exercise. Your program needs to create an array of structures. The size of the array is 5 and each element in the array is of type SoftDrink. The elements in the array should be initialized with the data provided by the exercise. Your program needs to use loop control structure to repeatedly display a menu allowing users to choose a drink. For example:
1: Cola
2: Root Beer
3: Lemon-Lime
4: Grape Soda
5: Cream Soda
6: exit the program


Grading Rubric
Algorithm (10) _____

Function Definitions:
a)Structure definition (5) _____
b)Array of structures (5) _____
c)Initialization of the array (5) _____
d)Menu-driven program design (5) _____
e)Loop control structures (5) _____
f)Processing user choices correctly (5) _____
g)Displaying the total amount of money
the machine earned (5) _____
h)input validation (refer to p667) (5) _____

Explanation / Answer

            }

     }

      return ch-1;

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote