Question: C++Question Objectives After this lab assignment, students should be able to . Declare and define structs Implement designs using structs Instructions In this lab, we
C++Question



Objectives After this lab assignment, students should be able to . Declare and define structs Implement designs using structs Instructions In this lab, we will create an abstraction of a vending machine in C++, using structs to describe each item in the machine, and a vector to maintain a list of all the items in the machine Use the following struct declaration for vending machine items struct item string name; // name of the item int code// numerical code entered to select the item float price: 1/ price per unit of the item int stock; // number of items available in the machine Use the following vector declaration for the vending machine int main) [ vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
