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

Problem specificationyou have been approached by a local

Problem Specification You have been approached by a local university for designing and implementing a room access control system on the university campus. Access to each room on each floor of each campus building is cont ...

Module assignment introduction to programming using

Module Assignment: Introduction to Programming Using Java This assignment is to provide practice using arrays and strings along with other Java programming techniques discussed so far in the course. For this assignment, ...

This program is for a school assignment here are the

This program is for a school assignment. Here are the requirements: Write a Java application that effectively uses Java collections to store pairs of unique colors and their unique hexadecimal values. For example, "Red" ...

Javawrite a program that finds and prints all the solutions

**java**write a program that finds and prints all the solutions to the N queens problem for a given N. At the end of your program, print how many solutions were found. What is the N-Queens problem, you ask? 1) Google it. ...

This assignment consists of two sectionsbulljava program

This assignment consists of two sections: • Java program file(s) • A screenshot of the execution and source code of your Java program Label each file name according to the section of the assignment for which it is writte ...

Java programming using ide netbeansdetailed question must

Java programming using IDE NetBeans Detailed Question: Must use file operations, exception handling, recursive programming (to calculate averages), and encapsulation (or inheritance) in the program Must have four java fi ...

Assignmentyou have to doone of the following1modify your

Assignment You have to doONE of the following: 1. Modify your Registration project(s) to use a Hash Table to maintain the student information instead of the sorted array or BST. Your hash function should be based on the ...

Modify the week two java application using netbeans ide to

Modify the Week Two Java application using NetBeans IDE to meet these additional and changed business requirements: The company has recently changed its total annual compensation policy to improve sales. A salesperson wi ...

Javapizzacontactlistat the beginning of all your programs

JavaPizza ContactList At the beginning of all your programs, put a comment box that includes the program name, your name, and a brief description of the program. Example: /************************************************ ...

Write a java application using netbeans integrated

Write a Java application using NetBeans Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors: A salesperson will earn a fixed salary of 8 ...

  • 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

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen