Question In C++ A new fruit juice machine has been purchased for the cafeteria, and a program is needed to make the machine function properly. The machine dispenses apple juice, orange juice, mango lassi, and fruit punch in recyclable containers. In this programming example, we write a program for the fruit juice machine so that it can be put into operation. The program should do the following: Show the customer the different products sold by the juice machine. Let the customer make the selection. Show the customer the cost of the item selected. Accept money from the customer. Release the item. Hint: A juice machine has two main components: a built-in cash register and several dispensers to hold and release the products Compile the pieces into a cohesive program that is properly split into declaration/specification, implementation/definition, and main.cpp files. Your completed project should have these five files: cashRegister.h cashRegister.cpp dispenserType.h dispenserType.cpp main.cpp 1] Add some drinks. 2] Have your dispenser track how much money has been deposited, and only issue a drink when the required cents have been deposited. 3] Also make sure to tell the user if they have a change coming back from the machine.

RSQ5VT The Asker · Computer Science

In C++

A new fruit juice machine has been purchased for the cafeteria, and a program is needed to make the machine function properly. The machine dispenses apple juice, orange juice, mango lassi, and fruit punch in recyclable containers. In this programming example, we write a program for the fruit juice machine so that it can be put into operation.

The program should do the following:

  1. Show the customer the different products sold by the juice machine.
  2. Let the customer make the selection.
  3. Show the customer the cost of the item selected.
  4. Accept money from the customer.
  5. Release the item.

Hint: A juice machine has two main components: a built-in cash register and several dispensers to hold and release the products

  • Compile the pieces into a cohesive program that is properly split into declaration/specification, implementation/definition, and main.cpp files. Your completed project should have these five files:
  • cashRegister.h
  • cashRegister.cpp
  • dispenserType.h
  • dispenserType.cpp
  • main.cpp

1] Add some drinks.
2] Have your dispenser track how much money has been deposited, and only issue a drink when the required cents have been deposited.
3] Also make sure to tell the user if they have a change coming back from the machine.

More