[solved]-Test Function Using Main Exercise 3 Considering Correct Value Returned Function Menu Write Q39019853
c++
Test your function using a main. Exercise 3 By considering a correct value returned by the function menu, write another function named compute) that computes the amount and save it in a global variable. The function receives the choice and the quantity, by using an enumeration it selects the right price for the beverage (Water: 1 SAR, Milk: 1.5 SAR, Juice: 2 SAR, and Coffee: 1.75 SAR) Exercise 3 By considering a correct value returned by the function menu, write another function named compute() that computes the amount and save it in a global variable. The function receives the choice and the quantity, by using an enumeration it selects the right price for the beverage (Water: 1 SAR, Milk: 1.5 SAR, Juice: 2 SARR, and Coffee: 1.75 SAR) Page 1 of 2 Imam University CcCIS Vice Deanery of Development and Quality Doc. No o0o 40 CCIS Test your function using a main. First call the menu function from the main, then send the returned values to the function compute. Repeat the test several times in main function and at the end print the accumulated total amount Show transcribed image text Test your function using a main. Exercise 3 By considering a correct value returned by the function menu, write another function named compute) that computes the amount and save it in a global variable. The function receives the choice and the quantity, by using an enumeration it selects the right price for the beverage (Water: 1 SAR, Milk: 1.5 SAR, Juice: 2 SAR, and Coffee: 1.75 SAR)
Exercise 3 By considering a correct value returned by the function menu, write another function named compute() that computes the amount and save it in a global variable. The function receives the choice and the quantity, by using an enumeration it selects the right price for the beverage (Water: 1 SAR, Milk: 1.5 SAR, Juice: 2 SARR, and Coffee: 1.75 SAR) Page 1 of 2 Imam University CcCIS Vice Deanery of Development and Quality Doc. No o0o 40 CCIS Test your function using a main. First call the menu function from the main, then send the returned values to the function compute. Repeat the test several times in main function and at the end print the accumulated total amount
Expert Answer
Answer to Test your function using a main. Exercise 3 By considering a correct value returned by the function menu, write another … . . .
OR

