Question: Problem Statement (Using NeatBeans Please ) 1.We want to store some numbers into an array. 2.We want to be able to perform actions on these

Problem Statement (Using NeatBeans Please )

1.We want to store some numbers into an array.

2.We want to be able to perform actions on these numbers. For example:

a.Add/Insert

b.Delete/Remove

c.Find/Search

d.Display/Print

Your assignment:

(a)Create a storage

User-defined class

(b)Allow the user to manipulate the data by adding methods mentioned above

(c) Test your solution by creating a driver program that will test the functionality you provided in your user-defined class.

a.To test your program in three ways:

i.Create a Junit test class to test each of the public functions in your user-defined class.

ii. Using a simple text file, e.g. array.txt that matches a similar context as the one below.

Problem Statement (Using NeatBeans Please ) 1.We want to store some numbers

array.txt

1insert/add an element

2search/find an element

3delete/remove an element * be sure to print the state of the array after each operation

iii. Using a menu driven program. Display a list of menu items and give the user the option to choose which option to perform.

(d) Convert your solution to a Generic one and demonstrate that part c above continues to work.

7 46783517167

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!