Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am trying to remove the name Irina and then move every entry back one. This is explained in step 8. 7. Modify Main so

image text in transcribedimage text in transcribed

I am trying to remove the name Irina and then move every entry back one. This is explained in step 8.

7. Modify Main so it uses a SortedPD instead of an ArrayBasedPD. Copy the methods add, find, and remove to the SortedPD class, including their Javadoc comments. Visit http://www.cs.miami.edu/-vjm/csc220/prog02/dist/csc220.txt and save this file to your workspace/csc220 directory. Visit csc220.txt in Eclipse. You should see Victor vjmscs.miami.edu Irina irina@cs.miami.edu Jerr j.bonnellemiami.edu Halle hallekfields@miami.edu George jxp14688miami.edu Run Main, and tell the program to remove Irina and save. Refresh the csc220.txt window in Eclipse. You should see Victor vjmscs.miami.edu George jxp1468@miami.edu Jerry j.bonnellmiami. edu Halle hallekfields@miami.edu Why? Because the way it removes Irina is by copying the last entry (George) into the same location. 8. Exit the program. Restore csc220.txt by saving it from the browser again and refreshing the window in Eclipse. Modify remove (irn SortedPD) so instead of copying entry [size-1] on top of entry [index] it moves entries [index+1] to [size-1] each back one. Now when you run Main, remove Irina, and save, and refresh csc220.txt, you should see Victor vjmecs.miami.edu Jerry j.bonnell@miami.edu Halle hallekfields@miami.edu George jxp14680miami.edu Do not modify add or find until you have this working. protected DirectoryEntry remove (int index)

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

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions

Question

=+3 In what ways can an MNE improve or change its approach to IHRM?

Answered: 1 week ago