[url removed, login to view] Handling (
2. InputMismatchException will be thrown. Please ensure that you catch all exceptions.
Additionally, please create your own exception classes for each unique scenario:
1. Menu index is out of bounds: user enters a value less than 1 or greater than 6 (MenuIndexOutOfBoundsException)
2. App price is invalid: user submits an app price less than 0 and greater than 99.99 (AppPriceInvalidException)
Throw the custom exceptions (and catch) if the necessary.
Writing to disk) -
When a user selects "(6) Exit" please output the following to disk*:
- App Store Statistics -
Number of users:
Number of developers:
Number of apps:
Average app price:
You should prepare the content to write and perform the output operation in the exit helper method.
* Please note that you need to have a location instance variable in the Driver, so i can easily enter the location of the file prior to running the application.