Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You will code a simple line editor that lets uses create on screen lists. A list is just a series of lines which are Strings

You will code a simple line editor that lets uses create on screen lists. A list is just a series of lines which are Strings of text. We will store the list in an ArryList Use the SafeInput Library for all inputs.
1) Use IntelliJ to create a java project called Lab_11_Listmaker and create the GitHub repo for your code.
2) Start by creating a menu driven loop:
i) The Loop awaits user input until the Quit command is issued
Command Options:
A Add an item to the list
D Delete an item from the list
I Insert an item into the list
P Print (i.e. display) the list
Q Quit the program should do an are you sure? type query before exiting.
ii) The program gets one of these commands from the user and executes that function
- Add an item always puts it at the end of the list
- Delete an item user has to specify which one using the item number from the display
- Insert an item user has to indicate where using an location number
- Print the list just displays the list
- Quit asks the user if they are sure and then terminates the program.
iii. Initially stub out the functions so you have a program that you can run almost immediately as you develop it as per the Agile Software Dev approach. You will develop each of the menu options as a separate java method.
iv. You also will need some private static utility functions.
v. You will want to display the current list along with the menu of options so the user can see what they are doing.
vi. You need to display a numbered version of the list to allow users to pick list elements for deletion. Here the user looks at the display and then indicates the item to delete by the number.
vii. You should use your SafeInput library to bulletproof all input.
For instance, use your getRegExString method to get the menu choice from the user. Here, a regEx pattern like this [AaDdIiPpQq] creates a set where a match will be any one of these characters which of course are the menu choices that the user will make.. Note that we have to include both the upper and lower case.
Use your getRangedInt method to get the item number to delete, etc.
Use your getYNConfirm method for the quit prompt etc.
Document your work:
Create a sequence of screen shots that show that you coded each of the menu functions. Do this in a series of operations. i.e. build a list, insert an item, delete an item view the list. Ideally, several examples of each operation.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions

Question

Describe the structure of the liver.

Answered: 1 week ago