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

  What are the xml databases

What is data warehousing? How are databases and data warehousing related? Do you believe data warehousing is a fad or a "real" technology that would benefit organizations?

  How to research the development technologies

how to Research the development technologies below and type up a sum,mary of them.

  Define the principle for creating a database

Define the principle for creating a database

  Developing the lan network for a company

You have been asked to develop a LAN with operation over the distance of around 100m. Compare and contrast the twisted pair cable, fiber-optics, and wireless for this application.

  Explaining arp command

The arp command: arp -s InetAddr EtherAddr enables you to manually add an entry to ARP cache which resolves the IP address InetAddr to the physical address EtherAddr.

  Stop-and-wait arq

Assume that each router utilizes the stop-and-wait ARQ and offer one buffer (large enough for one packet) for every VC in every direction of traffic.

  Compare and contrast telnet and ftp

find out whether or not additional components could be added to the IPv4 protocol to enhance its usefulness.

  Developing the marketing requirements

Develop a code scheme that will meet marketing managers stated requirements. Write down a brief memo to marketing manager proposing at least one alternative to the code she proposed

  How standards are intended to create unity

standard issued by either the International Telecommunication Union.It was also stated that "Although standards are intended to create unity, they can have the opposite effect".

  What are the feelings positive or negative

IT administrators in small companies must often execute several functions at the same time like network administrator, database administrator, user consultant and others. Compared to their situation, their colleagues in larger companies can get mo..

  Initialize the loop control variable before the program

In boy of the loop, I need to multiply the value of the loop control variable by 10 and by 100, then I want to change the value of the loop control variable in the body of loop.

  Define the facts they have learned simultaneously hold

An efficient algorithm is proposed to do this: either it produces proposed dates of birth and death for each of the n people so that all facts hold true, or it reports (correctly) that no such dates can exist. That is the facts collected by the sci..

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