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.
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
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