Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Programming Challenge

julesxdujour
julesxdujour 


Let me know if you have any questions about the formatting of the assignment. Thanks! Attachments Tags Clarifications

Answers

Java Programming Challenge

dickersonka
dickersonka 



Attached are all 3 parts to the... Attachments
PPC11.7.zip (3 K) Download
Preview
* @param phone Phone */ public Person(String name, String address, String phone){ this.name = name; this.address = address; this.phone = phone; } /** * Get Person Name * @return Name */ public String getName() { return name;

Preview
new Person( "Joan Jett", "6794 Hollywood Way\nLos Angeles, CA 78216", "(841) 671-2178" ); System.out.println(person1); System.out.println("------------------------------\n"); //Create person with mutator methods Person person2 = new Person(); person2.setName("Kobe Bryant"); System.out.println("Set name to: " + person2.getName()); person2.setAddress("9134 Main Street\nSan Bernadino, CA

Preview
mailingList; } /** * Set MailingList * @param mailingList MailingList */ public void setMailingList(boolean mailingList) { this.mailingList = mailingList; } /** * Customer string implementation */ public String toString(){ return super.toString() + "\n" +

Preview
/** * Get Person Name * @return Name */ public String getName() { return name; } /** * Set Person Name * @param name Name */ public void setName(String name) { this.name = name;

Preview
{ public static void main(String[] args){ //Create customer using constructor Customer c1 = new Customer("John Doe", "123 Main Street\nLos Angeles, CA 78122", "(214) 567-0812", "18", false); System.out.println(c1); System.out.println("------------------------------\n"); //Create customer using constructor Customer c2 = new Customer("Jane

Preview
A new Customer object is created that passes all the fields into the Customer constructor This object is returned and added to the customer arraylist The user is then prompted again to add customer,

Screenshots
Purchase Answer