# Q13 c++ if answering please do not write code in paragrapth form. 13. Drink Machine Simulator...

###### Question:

q13 c++

13. Drink Machine Simulator Write a program that simulates a soft drink machine. The program should use a structure that stores the following data: Drink Name Drink Cost Number of Drinks in Machine The program should create an array of five structures. The elements should be initialized with the following data: Drink Name Cost Number in Machine Cola .75 20 Root Beer .75 20 Lemon-Lime .75 20 Grape Soda .80 20
Drink Name Cost Number in Machine Cola .75 20 Root Beer .75 20 Lemon-Lime .75 20 Grape Soda .80 20 Cream Soda .80 20 Each time the program runs, it should enter a loop that performs the following steps: A list of drinks is displayed on the screen. The user should be allowed to either quit the program or pick a drink. If the user selects a drink, he or she will next enter the amount of money that is to be inserted into the drink machine. The program should display the amount of change that would be returned and subtract one from the number of that drink left in the machine. If the user selects a drink that has sold out, a message should be displayed. The loop then repeats.
##### ADVANCED MATERIAL Predicting qualitatively how entropy changes with temperature and volume For each system listed in...
ADVANCED MATERIAL Predicting qualitatively how entropy changes with temperature and volume For each system listed in the first column of the table below, decide (if possible) whether the change described in the second column will increase the entropy S of the system, decrease S, or leave Sunchanged....
##### Java programming. One. Write a method public boolean hasOnlyoddDigits(int n) that returns true if its parameter...
java programming. One. Write a method public boolean hasOnlyoddDigits(int n) that returns true if its parameter n contains only odd digits (1, 3, 5, 7, or 9), and returns false otherwise. Zero is counted as an even digit whenever it appears inside the number. Remember that for a positive integer n,...
##### How do you express cos theta - sec theta + cot theta  in terms of sin theta ?
How do you express cos theta - sec theta + cot theta  in terms of sin theta ?...
##### Create a table describing acute tracheobronchitis, including clinical manifestations, and medical and nursing management.
Create a table describing acute tracheobronchitis, including clinical manifestations, and medical and nursing management....
##### . Please explain the Gramm-Leach Bliley Act. You must explain the background and history of the...
. Please explain the Gramm-Leach Bliley Act. You must explain the background and history of the Act. 2. Research and discuss a case outside of the book and lecture notes in regard to the Gramm-Leach Bliley Act. 3. How would you define the major parts of the privacy requirements: the Financial Privac...
##### This is how to question is give. A cell composed of a platinum indicator electrode and...
this is how to question is give. A cell composed of a platinum indicator electrode and a silver-silver chloride reference electrode in a solution containing both Fe2* and Fe3+ has a cell potential of 0.699 V. If the silver-silver chloride electrode is replaced with a saturated calomel electrode (S...
##### Measured Wavelength for Hg vapor > 900 3. A student used a Measured Wavelength (nm) vs....
Measured Wavelength for Hg vapor > 900 3. A student used a Measured Wavelength (nm) vs. Actual Wavelength (nm) for Hg Vapor spectroscope to view the emission spectrum of Hg vapor, and plotted her measured wavelengths ly- axis) vs. the actual wavelengths (x-axis). The actual wavelength of ...
##### Power Supply with Zener Voltage regulator D4 131 12 Vpk Vs 60 Hz 0° D2 D3 2. Simulate the bridge rectifier with three different filter capacitors(1uf, 5μF and 10μF) and observe output waveforms. Comp...
Power Supply with Zener Voltage regulator D4 131 12 Vpk Vs 60 Hz 0° D2 D3 2. Simulate the bridge rectifier with three different filter capacitors(1uf, 5μF and 10μF) and observe output waveforms. Compare ripple voltages, estimation vs. simulation values Plot v, and vout waveforms. Power Su...
##### In this question, an amortization table is given. In this situation, you want to take out a 12 ye...
In this question, an amortization table is given. In this situation, you want to take out a 12 year loan for $215,000. The current interest rate is 5.75%, and you will make monthly payments. 1. Lets assume that you can only afford to pay$2,400 a month. With the same interest rate above, calculate t...