Programming Exercises
1: | The Wine class has a String class object (Chapter 11) holding the name of a wine and an ArrayDb class object (this chapter) holding the number of available bottles for each of several consecutive years. Implement the Wine class using containment and test it with a simple program. The program should prompt you to enter a wine name, the size of the array, the first year for the array, and the number of bottles for each year. The program should use this data to construct a Wine object, then display the information stored in the object. |
2: | The Wine class has a String class object (Chapter 11) holding the name of a wine and an ArrayDb class object (this chapter) holding the number of available bottles for each of several consecutive ... |
Get The Waite Group's C++ Primer Plus, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.