Instructions:There are 3 classes in this project: The WorkFriend domain class, a

Instructions:There are 3 classes in this project: The WorkFriend domain class, a Helper class, and the Driver class which contains the main method.Your task is to complete the code in both the Helper class and the Driver class.Helper Class:The Helper class will contain a 2-D array of WorkFriend objects.
Each row in the array represents a capital letter in the alphabet, thus
there are 26 rows. Within each row there will be a varying number of
columns depending on how many friends have last names that begin with
the letter represented by that row. For example, if there are 3
WorkFriend objects whose last name begin with the letter ‘C’, then in
the row with index of 2, you should find an array of 3 WorkFriend
objects. Then, if there are 5 WorkFriend objects whose last name begin
with the letter ‘G’, then in row with index 6 you should find an array
with 5 WorkFriend objects. The Helper class contains the 5 methods that manipulate the 2-D array of WorkFriend objects:1.) public int addToArray(WorkFriend anAddedFriend)2.) public int changeInArray(WorkFriend aChangedFriend)3.) public int removeFromArray(WorkFriend aRemovedFriend)4.) public WorkFriend findInArray(WorkFriend aSearchFriend)5.) public String listAllFriends()You will find pseudo code in each method in the skeleton project, to help you write the code for each of these methods.The Driver Class:The Driver class contains the main method, which loops to display a
menu, and then processes a menu option selected by the user. When the
user selects option 6, the loop stops and the program ends.Each menu option calls a different method in the Driver class:1 ====> processAdd()2 ====> processChange()3 ====> processDelete()4 ====> processView()5 ====> processViewAll()Each method in the driver class calls a corresponding method in the Helper class.Driver class method Helper class methodprocessAdd() ————> addToArray(WorkFriend aFriend) processChange() ——–> changeInArray(WorkFriend aFriend)processDelete() ———-> removeFromArray(WorkFriend aFriend)processView() ————> findInArray(WorkFriend aFriend)processViewAll() ———> listAllFriends()You will find pseudo code in each method in the skeleton project, to help you write the code for each of these methods.FOR THIS ASSIGNMENT THE PROFESSOR GAVE US A ZIP FILE. SO I WILL UPLOAD ALL THE FILES IN THE COMMENTS.
Requirements: NO SPECIFIED LENGTH & APA FORMAT

Published
Categorized as Java

Leave a comment

Your email address will not be published. Required fields are marked *