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

Importantuse jgrasp for editingobjectives - at the

IMPORTANT: use JGRASP for editing. Objectives - At the conclusion of this assignment students will have demonstrated that they can: Validate input data from a keyboard. Use loops to repeat actions in a program Use a Rand ...

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" ...

Java application product and inventoryreadingchapter 9 of

Java Application Product and Inventory Reading Chapter 9 of the text Moodle: Class Coding Style Java Classes Java Application Product and Inventory Product.java Create a class to encapsulate the data and behavior of a pr ...

Write a java application that allows a user to enter

Write a Java application that allows a user to enter numbers into an array and then process them. Enter the number of elements and the value of each element; Your application will process the data entered and will displa ...

Create a console based non-gui java program using netbeans

Create a console based, non-GUI Java program using NetBeans Integrated Development Environment (IDE) that displays "Hello world!" Take a screenshot that shows the program's successful compilation and execution. Submit bo ...

1 answer the following questions for each method or method

1) Answer the following questions for each method or method signature below. You may assume that these functions do not access or modify any memory not allocated within the function itself (i.e., global or class-level da ...

Write a jsp program that generates subtraction quizzes

Write a JSP program that generates subtraction quizzes randomly, as shown in Figure 43.14a (http://postimg.org/image/ze4uwdhqp/) . The first number must always be greater than or equal to the second number. After the use ...

Write a java program non-gui preferred to demonstrate the

Write a Java program (non-GUI preferred) to demonstrate the use of an ArrayList. The program should allow a user to do the following: Add, edit, delete different types of animals Select an animal, and the corresponding c ...

Assignment introduction to programming using java1 write a

Assignment: Introduction to Programming Using Java 1. Write a program that uses one of the Map classes to implement a contact list. Contact information should include first name, last name, a phone number and an email ad ...

Exam program create a class for working with mixed

Exam Program: Create a class for working with mixed fractions. Only 3 private data members are needed: the int whole number part of the fraction, the int numerator of the fraction, and the positive int denominator of the ...

  • 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

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

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