subject

Coded in netbeans application and javacreate an application that lets you enter a new customer or a new employee. console display illustrationwelcome to the person managercreate customer or employee? (c/e): error! this entry is required. try again. create customer or employee? (c/e): perror! entry must be 'c' or 'e'. try again. create customer or employee? (c/e): cfirst name: stevelast name: trevorcustomer number: m10293you entered a new customer: name: steve trevorcustomer number: m10293continue? (y/n): ycreate customer or employee? (c/e): efirst name: dianalast name: princelast four of ssn: 1234you entered a new employee: name: diana princessn: xxx-xx-1234continue? (y/n): okerror! entry must be 'y' or 'n'. try again. continue? (y/n): nspecificationsuse proper statement indentation and meaningful variable names in the code. add a multi-line description of this application (to include your name and the date written) at the beginning of the code for other programmers to read. add a comment to each code statement explaining why the statement is in the code. use the console class presented in chapter 7 or an enhanced version of it to get and validate the user’s entries. create a class named person with these constructors and methods: public person(string first, string last)public string getfirstname()public void setfirstname(string x)public string getlastname()public void setlastname(string x)the person class should override the tostring() method so it returns the first name and last name in this format: name: frank jonescreate a class named customer that inherits the person class and contains these constructors and methods: public customer(string first, string last, string number)public string getcustomernumber()public void setcustomernumber(string number)the customer class should override the tostring() method so it returns the value returned by the tostring() method of the person class appended with the customer number, like this: name: frank jonescustomer number: j54128create a class named employee that inherits the person class and contains these constructors and methods: public employee(string first, string last, string ssn)public string getssn()public void setssn(string ssn)the getssn() method should return a masked version of the social security number that only reveals the last four numbers. the employee class should override the tostring() method so it returns the value returned by the tostring() method of the person class appended with the social security number, like this: name: frank jonesssn: xxx-xx-1234

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
The cm is responsible for overseeing the actions of the crisis management team and coordinating all crisis management efforts in cooperation with disaster recovery and/or business continuity planning, on an as-needed basis
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
What are two of the most common reasons that peolpe who need mental health care do not access it?
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
Answers: 1
You know the right answer?
Coded in netbeans application and javacreate an application that lets you enter a new customer or a...
Questions
question
English, 28.05.2021 08:40
question
Mathematics, 28.05.2021 08:40
question
Biology, 28.05.2021 08:40
question
Mathematics, 28.05.2021 08:50
question
English, 28.05.2021 08:50
question
Mathematics, 28.05.2021 08:50
Questions on the website: 13722362