Java program gui application to store data-business customer


Question 1) Write a java program GUI application. The application would be to designed, store, and process data about business customer and employees. The application prompts the user to enter customer or the employee. If user chooses a customer, the application asks for the name, email, and customer number. If user choose employee, the application asks for name, email, and social security number. When user finishes entering data for a customer or employee, the application displays data that the user entered.

specification:

The following is a description of what you need to do to complete assignment.

1. Create the abstract Person class which stores first name, last name, and email address. This class must provide a no-argument constructor, get and set methods for each piece of data, and it should override the toString method so it returns the first name, last name, and email fields in this format:

Name: Frank Jones
Email: [email protected]

In addition it must contain the abstract method named getDisplayText which returns a string.

Question 2) Create the class named Customer which inherits Person class. This class must store a customer number, it must provide, get, and set methods for the customer number, it must provide a no-argument constructor, and it must provide the implementation of the getDisplayText method. The getDisplayText must return class appended with the Customer number like this:

Name: Frank Jones
Email: [email protected]
Customer number: M10293

Question 3) Create the class named Employee which inherits the Person class. This class must store a social security number, it must provide get and set methods for the social security number, it must give a no-argument constructor, and it must provide and implementation of the getDisplayText method. The getDisplay method must return the string which consists of the string returned by toString method of Person class appended with the Employees social security number like this:

Name: Frank Jones
Email: [email protected]
Social security number: 111-11-111

Question 4) Create the class named PersonApp which prompts the user as the following:

Welcome to the Person Tester application

Create customer or employee? (c/e); c
Enter first name: Frank
Enter last name; Jones
Enter email address: [email protected]
Customer number: M10293
Create customer or Employee? (c/e); e
Enter first name: Anne
Enter last name: Prince
Enter email address: [email protected]
Social security number: 111-11-1111

This class must create a essential Customer and Employee objects from data entered by the user, and it must use these objects to display data to the user. To print data for object to the console, this application uses a static method named print which accepts a Person object. Validate your data in your application so you are sure the correct.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Java program gui application to store data-business customer
Reference No:- TGS04528

Expected delivery within 24 Hours