Demonstrate instances of each class and tests

Assignment Help JAVA Programming
Reference no: EM13940673

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: EM13940673

Questions Cloud

What preconceptions do you bring to the study of research : What preconceptions do you bring to the study of research? List three advantages and three disadvantages of conducting research.2. Assume that you are Maria in the introductory scenario in this chapter. List three steps that you might take to begin y..
Conceptualization of one major problem : A conceptualization of one major problem the new IT programme may face; a clear research question or hypothesis and research objectives; a research strategy which includes a description and justification for the proposed data collection, analysis ..
What is the total amount owed to harry by natalie : Mary uses no color illustrations. What is the total amount owed to Harry by Natalie? What is the total cost of printing (ink and paper) for Natalie?
Determine the applied torque and the work done : A rotating disc of mass 25 kg and radius 150 mm is accelerated from 500 to 3000 rpm in a time of 25 s. If there is a constant friction torque of 5 Nm, determine the applied torque and the work done
Demonstrate instances of each class and tests : Demonstrate instances of each class and tests of all control paths in a program.
Ruggies framework as well as ethical theories : Your introduction will state what the injustice is you will suggest a remedy for, and how it links micro, mess, and macro levels. Your argumentation for the remedy should use Ruggie's framework as well as ethical theories.
Compare primary boycott and secondary boycott : Compare primary boycott and secondary boycott. Do you believe a primary boycott or a secondary boycott is more effective? Defend your answer.
Role of the government in the professional sports : What is the role of the government in the professional sports industry? What should its role be?
What aspects of this action may shock conscience of court : Identify the issues of the exclusionary rule your partner has. What aspects of this action may shock the conscience of the court? What ensuing evidence found based on this operation may be discarded as "Fruit of the Poisonous Tree".

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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