Reference no: EM132409038
Topic: Development of menu-driven application for the Modules application
The following activities are similar to the Stock Class discussed in class and in the “Part 3 - Stock Class ” hand-out.
The activities in this class are centred around the Module and Modules classes. You were asked to complete Q1 last week. This week’s exercise is a continuation from number 1 below.
1. Design and implement a class named Modules that may contain several Module objects.
Your class should define:
a constructor
a method to add a Module to the Modules container
a method to print details of each Module in the Modules container, details of each Module to be displayed on a single line
an access method which will get the number of modules currently in the Modules container.
Write a short application to test your Modules class.
Exercise from last week
2. Design and write a menu driven application named Menu that can be used by a student following a course of study.
The student should be provided with options to:
add a module to the list of modules they are studying
print the modules that they are studying
quit the application