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

Write a java program that prints asks the user to enter a

Write a Java program that prints asks the user to enter a positive value (1 less than or equal to 200) and print each number up to that line, 1 per line with the following changes (SNAP CRACKLE POP). • If a number is *** ...

Java programing essaywrite a paper of 700-word response to

JAVA programing essay Write a paper of 700-word response to the following: In your opinion, what are the three biggest challenges in planning and designing a solution for a programming problem? What can you do to overcom ...

Program 1objectivethis program assignment is provided to

Program 1 Objective: This program assignment is provided to let the students know how to handle threads and enhance system availability on a multiprocessor or multicore environment. A single process is supposed to create ...

Write a java program non-gui preferred to demonstrate the

Write a Java program (non-GUI preferred) to demonstrate the use of Iterator. The program should allow a user to do the following: Allow the reading of a collection of animal objects from an external file. Output on scree ...

1how does java support the concept of encapsulation2

1. How does Java support the concept of encapsulation? 2. Describe the difference between an object and a class. 3. What is the difference between the contents of a Java variable of a primitive type and a Java variable o ...

Question awhy is it important to avoid the use of reserved

Question A Why is it important to avoid the use of reserved words as you define variables, functions, methods, or identifiers? Do you have any get-arounds to the use of these reserved words that you like to use? (max 80 ...

Consider the following tilde table that could be

Consider the following "tilde table" that could be represented by the file cars.txt for persistence MAKE~MODEL~TYPE~PRICE Toyota~Camry~Sedan~18000 Toyota~Tacoma~Truck~19000 Ford~Mustang~Sport~21000 Chevrolet~Corvette~Spo ...

Assignmentmust be done on bluejin this exercise you will

Assignment MUST BE DONE ON BLUEJ In this exercise you will create a simple VotingMachine. In the United States, when a candidate runs for office, the person is often identified as a Democrat, Republican, or Independent. ...

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

Assessment scenarioproblemjava program for a music social

Assessment Scenario/Problem Java program for a Music Social Network system. You can work on this coursework either alone or in a pair with a colleague, not necessarily from the same seminar or lab group. If you elect to ...

  • 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