Question: # Milestone 1 ## The PosApp Module This Module contains one Module called `PosApp`. This module is responsible to offer the user a menu of
# Milestone 1
## The PosApp Module
This Module contains one Module called `PosApp`. This module is responsible to offer the user a menu of features provided by the POS system.
The user, then, can select an option representing the feature and execute it. After the execution is complete, the system displays the menu again, until the user selects to exit the application.
### The features of the POS system
1. List Items
2. Add Item
3. Remove Item
4. Stock Item
5. Point Of Sale
### Implementation
For milestone 1 you are responsible to create a mockup module for the Point Of Sale that will demonstrate how the system is going to run (eventually) by only printing the name of the actions, instead of executing them. In later stages of development, you will replace these messages with the proper logic to actually perform the action.
Note that the signature of many of the methods created now will be changed to accommodate what needs to be done.
#### The `PosApp` class
In module `PosApp` create a class with the same name (`PosApp`) having the following mandatory methods:
##### `menu`
This method will display the menu of the system, and receive the user's choice (in a foolproof way and return the choice). See below:
```text
The Sene-Store
1- List items
2- Add item
3- Remove item
4- Stock item
5- Point of Sale
0- exit program
> a
Invalid Integer, try again: -1
[0<=value<=5], retry: > 6
[0<=value<=5], retry: > 1
Running listItems()
```
##### Mockup methods:
Create the following 7 methods that only print `Running ` and their names.
1. addItem()
2. removeItem()
3. stockItem()
4. listItems()
5. POS()
6. saveRecs()
7. loadRecs()
##### Construction
`PosApp` is created by receiving the name of a file that is stored in character cString with a maximum length of 255 characters.
`PosApp` Can neither get copied nor assigned to another `PosApp` object. Your code must prevent such actions.
##### `run` method
> implement the following actions calling the corresponding mockup methods
This method first loads all the records and then displays the menu waiting for the user to make the selection. After the (foolproof) selection the proper action is executed and again the menu is displayed until the option exit is selected. In the latter case, all the records are saved and a `Goodbye!` message is displayed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
