Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

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

Learning PostgreSQL

Authors: Salahaldin Juba, Achim Vannahme, Andrey Volkov

1st Edition

178398919X, 9781783989195

Students also viewed these Databases questions

Question

Understand why customers are loyal to a particular service firm.

Answered: 1 week ago