- 7 21 Lab Vending Machine Given Two Integers As User Inputs That Represent The Number Of Drinks To Buy And The Number Of 1 (36.66 KiB) Viewed 56 times
7.21 LAB: Vending machine Given two integers as user inputs that represent the number of drinks to buy and the number of
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
7.21 LAB: Vending machine Given two integers as user inputs that represent the number of drinks to buy and the number of
7.21 LAB: Vending machine Given two integers as user inputs that represent the number of drinks to buy and the number of bottles to restock, create a Vending Machine object that performs the following operations: • Purchases input number of drinks Restocks input number of bottles • Reports inventory Review the definition of "Vending Machine.cpp" by clicking on the orange arrow. A Vending Machine's initial inventory is 20 drinks. Ex: If the input is: 52 the output is: Inventory: 17 bottles. 40539-4227798043ay? LAB ACTIVITY 7.21.1: LAB: Vending machine 1 #include <iostream> 2 3 #include "Vending Machine.h" 4 using namespace std; 5 6 int main() { 7 8 / Type your code here / Current file: main.cpp 0 Load default terr