Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Java Expert


Home >> Java

problem 1) prepare 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: frank44@hotmail.com

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

problem 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: Frank44@hotmail.com
Customer number: M10293

problem 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: frank44@hotmail.com
Social security number: 111-11-111

problem 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: frank44@hotmail.com
Customer number: M10293
Create customer or Employee? (c/e); e
Enter first name: Anne
Enter last name: Prince
Enter email address: anne@maurach.com
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.

Java, Programming

  • Category:- Java
  • Reference No.:- M94528

Have any Question? 


Related Questions in Java

Overviewthis assignment is intended to familiarize students

Overview: This assignment is intended to familiarize students with web application design, basic servlet functionality, and application deployment with a focus on servlet HTML generation and page navigation. The goal is ...

Programming assignment - summer semester 2015-purpose-to

Programming Assignment - Summer Semester 2015- Purpose- To provide students with the opportunity to apply the knowledge acquired and skills developed. These include understanding of primitive data types and the concept o ...

Twitter is a popular social media platform for users to

Twitter is a popular social media platform for users to send out a short message (a "tweet") to other users who are registered as his/her followers. Figure 1 shows a graph. (The topic on graphs will be covered after your ...

Question 1 illustrate that the nodes of any avl tree t can

Question 1. Illustrate that the nodes of any AVL tree T can be colored "red" and "black" so that T becomes a red-black tree. Question 2. Illustrate that via AVL single rotation, any binary search tree T1 can be transform ...

As we have discussed in class section 41 of our text

As we have discussed in class, section 4.1 of our text develops a List ADT and then offers two different implementations of it in the classes AList and LList. The ADT is defined in a Java interface file List.java, and bo ...

1 problem overviewyou have been asked to design and

1 Problem Overview You have been asked to design and implement a training system for company directors. In the best tradition of economics, we shall start by making things up. The training system is intended to show peop ...

The class below has some errors for each error do the

The class below has some errors. For each error do the following: a) Write the erring section of code and explain what the error is. b) Fix the error (i.e. re-write the code correctly). public class ClassWithErrors { pub ...

Write two java program by netbeans1 create a program that

Write two java program by Netbeans. 1. Create a program that ask for a radius of a circle and has the ability to return both the Area and Circumference - so methods call getArea() and getCircumferance() 2. Create a progr ...

Animal characteristicsin todays fast-paced world it is

Animal characteristics In today's fast-paced world, it is important for programmers to think about potential future changes that impact their programs. One way that software developers can address this concern is by desi ...

Student class and driverthis student class will be the data

"Student Class and Driver" This Student Class will be the data that will be used for each of the projects assigned and graded this semester. Your Student Class will consist of: Student Attributes: First Name Last Name ID ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate