Make instances of each class

Assignment Help Computer Engineering
Reference no: EM1329951

Design a Java class named Person with fields for holding a person's name, address and telephone number.

Write one or more constructors and the appropriate mutator and accessor methods for the class's fields.

Next, design a class named Customer, which extends the Person class. The Customer class should have a field for a 6 digit customer number and a boolean field indicating whether the customer wishes to be on a mailing list.

Write one or more constructors and the appropriate mutator and accessor methods for the class's fields.

Then, design a class named PreferredCustomer, which extends the Customer class. The PreferredCustomer class should have fields for the amount of the customer's purchases and the customer's discount level.

Write one or more constructors and the appropriate mutator and accessor methods for the class's fields.

Discount levels:
Customer Spends Discount on all future Purchases
$500 5%
$1000 6%
$1500 7%
$2000 10%

Demonstrate instances of each class and tests of all control paths in a program.

Reference no: EM1329951

Questions Cloud

The corporate strategy : Suppose you are the CEO of Nike and the world is coping with an economic recession. Please give an example of why you would change the corporate strategy and what changes you would make for what reason.
Prompts the user to enter the number of students : Write down a Java program that prompts the user to enter the number of students and each student's name and score, and finally displays the student with the highest score and the student with second-highest score.
Illustrate what impact could this have on the production : Illustrate what impact could this have on the level of production and therefore the unemployment rate.
Explain the role of accounting information systems : Explain The Role of Accounting Information Systems (AIS) in Achieving Organizational Objectives and Examples of how the roles played by AIS impact various departments within the organization
Make instances of each class : plan a Java class named Person with fields for holding a person's name, address and telephone number.
Discuss some of the benefits of strategic philanthropy : Discuss some of the benefits of strategic philanthropy and why you feel it's important.
Jurisdiction of u. s. supreme court : Describe the original and appellate subject matter jurisdiction of the U.S. Supreme Court?
Discuss how the economic indicators inflation-employment : Discuss how the economic indicators inflation, employment levels and interest rates,
Create a metric based plan for building : Turmeric & Spice want you to survey all the spice importers in their business. You know that the average rate of response to email and electronic surveys is 30% and that T&S has 100 importers located around the world. Create a metric based plan for b..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Performing calculations through class

Build a class known as Rational for carrying out the arithmetic with fractions. Write down a driver program in order to test your class. Addition of the two Rational numbers. Result of addition must be stored in reduced form.

  Implementing gcd in assembly language

Implement this function in the assembly language and write down a test program which calls function many times, passing it several values. Show all results on screen and include screen shots of the outputs.

  How to develop a problem definition

How to develop a problem definition

  Translation of this into a generic assembly language

A compiler for a RISC machine would introduce delay slots into this code so that the processor can employ the delayed branch mechanism.

  How using the sequence structure only

As you know, three fundamental control structure are sequence, selection and repetition. Can you write down C program using the sequence structure only.

  Clarify security mechanisms available for a database

Clarify security mechanisms available for a database

  Developing the c++ code

Write down a C++ code in order to execute the following application: If you press on “Sum” button, summation of all the multiple of 4 numbers greater than 0 and less than 100 will be found and the result will be displayed in result edit box.

  Listing all the visual basic looping

Listing all the visual basic looping and decision constructs that you think you would need to write a program that sorts the grades for you. DO NOT write the program, simply list the constructs and justify the decision for choosing them.

  Program on string representing

Program on  string representing

  Prepare visual basic application

Prepare visual basic application.

  Program on matrix

Program on matrix

  Code memory contents of code address instruction

make Use of the nine PAL instructions listed below to solve the problems.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd