[Solved] Objective Program Purpose Code Program Uses Concepts Covered Chapters 1 7 Lecture Notthe P Q37269386
OBJECTIVE (this is not the programpurpose): Code a program that uses the conceptscovered in chapters 1-7 and lecture. This is nottheprogram purpose!
PREP WORK: Chapters 1-7 (see Ch 7 Arrays ofObjects PowerPoint slides posted with this PA); and all labs upthrough the present.
GRADING: You’ll be graded on how wellyou follow the program instructions and the accuracy ofyour output as reflected in the prompts, the output specifications,and the sample output. Each line of outputcan be associated with multiple points in the code! Theinstructions, prompts and output are what the user wants. You arenot at liberty to change anything, but code tothese requirements.
PROGRAM INSTRUCTIONS: To create a program thatcreates an address book. Code a program that creates an addressbook organized in a 1D array. Create 3 separate class files in aproject
folder; declare variables at the classlevel; create and use a one-dimensional (1D) array typed as theAddressee class so it can contain addresseeobjects; use the for loop to populate thearray and extract data from the array; and code multiplemethods.
1. Work in groups of only two from the samesection. The group will only submit oneplan and one project with all the files.This means only one of the group members should submit thePA.ALLsubmissions will beignored if both group members post submissions. Theproject folder and the main()file will reflect the last names of bothgroup members. E.g.,
BunnyDuck001PA4. Through line and methodcomments, group members will claim authorship and the work has tobe evenly distributed. Example:
int age = 0; //By Bugs Bunny: STORES AN AGE
/**
* By Daffy Duck
* main() captures a first and last name, an age, and a zip code. *It multiplies the age and zip code to get a product.
* Output will be made to the console screen and to a
* GUI window.
*/
WARNING: One group member CANNOT and MUST NOTcarry the load for these assignments. All group members have to beactively engaged in developing and writing code to do well on theexams and in Java II.
a. There is an example of a PA4 plan on Blackboard. Use that toassist with your plan.
b. The prompts (to return press Alt then left arrow) tell you whatinput variables you will need.
2. Develop your code by planning the logicFIRST. You will only pseudocode theplan for the Addressee class.
c. The final output specifications will tell you the type ofcalculations you will need (if any) and whether you will need todeclare additional variables.
d. The sample output will tell you the order of logic for yourcode.
3. Save your plan asGroupMembersLastNamesSecNoPA4Plan.Download the plan instructions and the plan template through thelinks posted for this assignment on Blackboard. Download theCreating Projects in DrJava PDF (instructor’sversion) on how to create a projectfolder that manages multiple .java files stored inthe same folder. The project folder has the same name as the groupmembers .java file. You are creating 3 separate .javafiles to be stored in the project folder:
a.GroupMembersLastNamesSectionNoPANo.javacontainsonly the main(). b.AddressBook.java, and
c.Addressee.java.
- The fields/class variables are non-static. All methods arenon-static except for the main(). The non-static methods do nothave the word “static” in their headers.
- The main() will instantiate (create) an object of theAddressBook class and use that object to callstart(). Make sure you exit main().
- The AddressBookclass will have 4 methods:
a. an empty constructor,
- start(),
- createAddressBook(),
- and displayAddressBook().
- There are NO value-returning and/or value-receiving methods inthe AddressBook class. You will create a 1D array calledaddressBook at the class level as a null array.The type for this array will beAddressee.
- In start(),
i. if the answer is “Y” to begin entering addresses, thencreateAddressBook() and displayAddressBook() are called;
ii. otherwise the program exits with this message:Exiting program.
g. In createAddressBook(), the user is promptedfor the number of contacts to be entered in the
addressBook array. That number will be used togive size to the array. For all 3 classes, the only call toclear the buffer is after the prompt for the number ofaddressees.
h.IndisplayAddressBook(),theoutputisprintedaccordingtospecs(seesampleoutput).
7. The Addresseeclass will have theset methods to capture the addressee’s informationand the get methods to return the captureddata.
- Codeanemptyconstructor.
- Code a method called setAddressee() thatprompts for each addressee.
- Code a method called setStreet() that promptsfor the addressee’s street.
- Code a method called setCityStateZip() thatprompts for the addressee’s city, state, and zip.
- Code a method called setPhone() that promptsfor the addressee’s 10 digit phone number.
- Code a method called setRelationship() inwhich that prompts for the relationship of the addressee: family,friend, or work. No need to clear the buffer in this method.
- Code getmethods for each field (class-levelvariable) that has a set method. These get methods onlyreturn the fields (class-level variables).
- Code at the class level only those variables that need to beused by more than one method.
a. 7forAddressee.
b. 3forAddressBook
Expert Answer
Answer to OBJECTIVE (this is not the program purpose): Code a program that uses the concepts covered in chapters 1-7 and lecture. … . . .
OR

