Question: Milestone 2The Seneca Library Application Module Your task for milestone 2 is to build a mockup application for the Seneca Library Application in a module
Milestone 2The Seneca Library Application Module
Your task for milestone 2 is to build a mockup application for the Seneca Library Application in a module called LibApp.
The LibApp class demos the execution of the Seneca Library Application with printing messages instead of actually doing the tasks.
Later these messages are replaced with actual working modules to make the application functional.
Creating a mockup application before developing the main program helps to understand the entire system and also demonstrates the execution of the program to the client before the application is fully developed.
You are going to use the Menu Module in this milestone.
Modules (files) included in this milestone:
Utils.cpp Utils.h Menu.cpp Menu.h LibApp.cpp LibApp.h ms2_tester.cpp Before starting the milestone you have to make a minor modification to the title of the Menu class:
Remove the colon (":") character after displaying the title of the Menu
MS1 MENU:
Lunch Menu: 1- Omelet 2- Tuna Sandwich 3- California Rolls 0- Exit > MS2 Menu:
Lunch Menu 1- Omelet 2- Tuna Sandwich 3- California Rolls 0- Exit > Note: these types of modifications to previously written code are very common to accommodate newly developed logic.
The LibApp Module
create a class called LibApp with following attributes:
LibApp Attributes
bool m_changed; Menu m_mainMenu; Menu m_exitMenu;
m_changed
A flag to keep track of changes made to the application data. This flag is initially set to false. If any change is made to the data of the application, this flag is set to true.
Doing so, when exiting the program, we can warn the user and ask if they like the changes to be saved or discarded.
m_mainMenu
This menu will be used as the main menu of the application and should be initialized with the following title:
"Seneca Libray Application" and then populated with the following menu items:
"Add New Publication" "Remove Publication" "Checkout publication from library" "Return publication to library" m_exitMenu
This menu will be used when exiting the program if any changes are made to the data. This menu should be initialized with the following title
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
