Develop an instantiable class for this application which contains:
For example:
Name the instantiable class ItemChecker.
1. Prompt the user to provide an Eircode
2. It should work even if the user provides text in both uppercase and lowercase letters. The text will be converted in all uppercase letters.
3. After converting the text in all uppercase letters: Check if the Eircode is valid. Format: LDD CCCC (starts with a letter, continues with 2 digits, space, ends with 4 characters - either letters or digits in any order. Digit: numbers from 0 to 9.
4. Develop another compute method which takes in as parameter a number (user id), create user ids, and store those items in an array of String items. The method must return the array of computed items.
User id: 8 characters, first 5 characters are lowercase letters (a-z), followed by any 3 digits (one of the following: 1, 3, 5, 7, 9). The method creates user ids by randomly selecting letters and digits. A letter or digit can appear more than once in the same user id.
Develop an application that uses the instantiable class ItemChecker (the instantiable class previously developed in Question 1. a.) to check the validity of the given items (i.e. pieces of text). The application should allow a user to enter multiple items. Please check Table 2 Approaches to entering multiple items to check their validity for details about the approach you have to implement in order for the application to check multiple items.
The application will display on the screen if the given items are valid or not. In the application class, please add a short comment for each method of the ItemChecker class that you use/call in your application to explain why that method is needed. Name the application class ItemCheckerApp.
ItemCheckerApp:
1. Ask the user how many eircodes they would like to check, and ensure that the application enables the user to provide that amount of eircodes and for each Eircode, check its validity.
2. Display on the screen if the given eircodes are valid or not.
3. Ask the user how many user ids he would like to create.
4. Call the "other method" defined in the ItemChecker to create the items.
5. Display on screen the user ids created.