In the class cashRegister, add the functions to overload the binary operators + and –to add and subtract an amount in a cash register; the relational operators to compare the amount in two cash registers; and the stream insertion operator for easy output. The class dispenserType, in the Programming Example “Juice Machine” in Chapter 10, is designed to implement a dispenser to hold and release products. In this class, add the functions to overload the increment and decrement operators to increment and decrement the number of items by one, respectively, and the stream insertion operator for easy output. Write a program to test the classes designed in steps 1 and 2. I have: cashRegister.h cashRegister.cpp dispenseType.h dispenserType.cpp
-
In the class cashRegister, add the functions to overload the binary operators + and –to add and subtract an amount in a cash register; the relational operators to compare the amount in two cash registers; and the stream insertion operator for easy output.
-
The class dispenserType, in the
Programming Example “Juice Machine” in Chapter 10, is designed to implement a dispenser to hold and release products. In this class, add the functions to overload the increment and decrement operators to increment and decrement the number of items by one, respectively, and the stream insertion operator for easy output.
Write a program to test the classes designed in steps 1 and 2.
I have:
cashRegister.h
cashRegister.cpp
dispenseType.h
dispenserType.cpp
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
-
In the class cashRegister, add the functions to overload the binary operators + and –to add and subtract an amount in a cash register; the relational operators to compare the amount in two cash registers; and the stream insertion operator for easy output.
-
The class dispenserType, in the
Programming Example “Juice Machine” in Chapter 10, is designed to implement a dispenser to hold and release products. In this class, add the functions to overload the increment and decrement operators to increment and decrement the number of items by one, respectively, and the stream insertion operator for easy output.
Write a program to test the classes designed in steps 1 and 2.
I ALREADY HAVE THE FOLLOWING:
cashRegister.h
cashRegister.cpp
dispenseType.h
dispenserType.cpp
I am in NEED OF main.cpp, just that one code is missing