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

Java Customer or Employee app

mmgg
mmgg 


This is an old assignment I am looking for Java code to see how this is done correctly for future reference. I am looking for a full solution. Thank you. Attachments Tags
Clarifications

Answers

Java - Customer Employee - Solution

dickersonka
dickersonka 



Attached is the solution to the Java - Customer Employee assignment Attachments
Person.zip (2 K) Download
Preview
new Scanner(System.in); System.out.println("Welcome to the Person Tester application"); String cont = ""; //keep looping until user chooses quit while(!cont.equalsIgnoreCase("n")){ //get customer or employee String choice = Validator.getCOrE(input, "\nCreate customer or employee? (c/e): "); //get person fields String firstName =

Preview
again."); } } return answer; } /** * Get c or e * @param sc scanner * @param prompt message to display * @return value entered */ public static String getCOrE(Scanner sc, String prompt) { String

Preview
return super.toString() + "\nCustomer number: " + this.customerNumber; } /** * Get customer number * @return customer number */ public String getCustomerNumber() { return

Preview
security number */ public String getSocialSecurityNumber() { return socialSecurityNumber; } /** * Set social security number * @param socialSecurityNumber social security number */ public

Preview
public String getEmailAddress() { return emailAddress; } /** * Set email address * @param emailAddress email address */ public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; } /** * String representation of person */

Screenshots
Purchase Answer