Question: Instructions 1. Draw a UML diagram using a drawing package of your choice, draw a UML class diagram for your code from Assignment #1 Remember,

 Instructions 1. Draw a UML diagram using a drawing package of

Instructions 1. Draw a UML diagram using a drawing package of your choice, draw a UML class diagram for your code from Assignment #1 Remember, functions are not classes, so main() is not a class! Now add a Control class that will be responsible for all control flow, and a view class to deal with all user l/O. Think about what functions will be required in each class. You must keep adding to your diagram as you modify the code in each of the steps below. Your UML diagram should reflect the design of the entire program for this assignment 2. Implement the Control class You will create a new Control class that implements the control flow from the main) function. The Control class will contain: . a data member for the calendar object that used to be declared in main) . a data member for a new view object that will be responsible for user I/O . a launch ) member function that implements the program control flow and does the following: use the view object to display the main menu and read the user's selection, until the user chooses to exit if required by the user, create a new dynamically allocated Event object and add it to the calendar using existing functions use the view object to print the content of the calendar to the screen at the end of the program The control class will perform all user I/O using the view class. It will not interact with the user directly You will change the main() function so that its only responsibility is to declare a cont roi object and call its 1aunch ) function. 3. Implement the View class You will create a new view class that is responsible for interacting with the user. The view class will contain: a member function for displaying the main menu and reading the user's selection a member function for reading all the information from the user about one event a member function for printing out the calendar; this function will take the calendar as a parameter, and it will use delegation, as seen in Tutorial #3, to ask the calendar class to print to the screen . 1/4 COMP 2404-Fall 2018 Assignment #2 Instructions 1. Draw a UML diagram using a drawing package of your choice, draw a UML class diagram for your code from Assignment #1 Remember, functions are not classes, so main() is not a class! Now add a Control class that will be responsible for all control flow, and a view class to deal with all user l/O. Think about what functions will be required in each class. You must keep adding to your diagram as you modify the code in each of the steps below. Your UML diagram should reflect the design of the entire program for this assignment 2. Implement the Control class You will create a new Control class that implements the control flow from the main) function. The Control class will contain: . a data member for the calendar object that used to be declared in main) . a data member for a new view object that will be responsible for user I/O . a launch ) member function that implements the program control flow and does the following: use the view object to display the main menu and read the user's selection, until the user chooses to exit if required by the user, create a new dynamically allocated Event object and add it to the calendar using existing functions use the view object to print the content of the calendar to the screen at the end of the program The control class will perform all user I/O using the view class. It will not interact with the user directly You will change the main() function so that its only responsibility is to declare a cont roi object and call its 1aunch ) function. 3. Implement the View class You will create a new view class that is responsible for interacting with the user. The view class will contain: a member function for displaying the main menu and reading the user's selection a member function for reading all the information from the user about one event a member function for printing out the calendar; this function will take the calendar as a parameter, and it will use delegation, as seen in Tutorial #3, to ask the calendar class to print to the screen . 1/4 COMP 2404-Fall 2018 Assignment #2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!