Question
Please code in JAVA Canada Postal Code System 2. Design program that displays a menu with the options to add, remove, and edit postal codes
Please code in JAVA
Canada Postal Code System
2. Design program that displays a menu with the options to add, remove, and edit postal codes in a database. The program should be able to store 10 postal codes. - If the user selects "add" - the program that asks the user for their postal code. The program should then add the postal code to its database (array). - If the user selects "delete" - the program that asks the user for their postal code. The program should then remove the postal code from its database (array). It should also output if the code is not found. - If the user selects "edit" - the program that asks the user for their postal code. The program should then ask for the new postal code and replace the one in its database (array). It should also output if the code is not found. - Be sure to handle situations: duplicate postal codes, database full/empty. invalid postal codes, etc. - Use your postal code validation method from your previous work to save time.
- Design a method for your postal code program that sorts the data. Create a new version of the program that now keeps the data sorted at all times.
- The menu should have an EXIT option. The program should save all the postal code data to a file when the user exits. The postal code data should be loaded from the file back into the array every time the program starts up.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started