Display the value of the tostring method of a customer type

Assignment Help JAVA Programming
Reference no: EM13940420

Criterion

1. CustomerType enumeration contains constants representing 3 customer types: retail, trade and college

2. CustomerType contains getDiscount method that returns the appropriate discount for each customer type: 10% for retail, 30% for trade and 20% for college

3. CustomerType enumeration contains a toString method returning an appropriate string for each customer type: Retail customer, Trade customer and College customer

4. Contains CustomerTypeApp class that compiles correctly

5. CustomerTypeApp main method declares a CustomerType variable

6. CustomerTypeApp main method assigns valid customer type to its CustomerType variable

7. CustomerTypeApp main method displays the discount for its CustomerType variable

8. CustomerTypeApp main method displays the string for its CustomerType variable

public class CustomerTypeApp
{
public static void main(String[] args)
{
// display a welcome message
System.out.println("Welcome to the Customer Type Test applicationn");

// get and display the discount percent for a customer type

// display the value of the toString method of a customer type

}

// a method that accepts a CustomerType enumeration
}

Reference no: EM13940420

Questions Cloud

Develop a new application system : ‘You have been assigned as the manager on a project to develop a new application system for your business partner. You were given two weeks to develop a project plan and high level cost estimates.
Using examples explain what is dumping : Using examples explain what is dumping? Does dumping raise any moral issues? What are they? How could some of these issues be overcome?
The accounting records of larder corporation : The following data (in thousands of dollars) have been taken from the accounting records of Larder Corporation for the just completed year.Sales
Prepare a quantitative assessment of the risks : Profile the risks to your organization given the above scenario and prepare a quantitative assessment of the risks using an appropriate risk register for the following strategic categories of risk:
Display the value of the tostring method of a customer type : display the value of the toString method of a customer type
Identify a problem in the juvenile justice system : Evaluate the problem in its current state. In other words, what is the problem with how things are? Analyze this problem in terms of how it relates to families, communities, and society as a whole.
What is the stock price if the discount rate : What is the stock price if the discount rate for the stock is 10%? What is the dividend yield?
Sort 25 numbers and rank them from smallest to largest : You are given cholesterol levels of 13 men and 12 women as below. Use Wilcoxan Rank-Sum Test. Sort 25 numbers and rank them from smallest to largest, and fill up the ranks in the table. b. Find µR and σR. Calculate test statistic z.
Concept of corporate social responsibility : "Discuss critically the extent to which you accept the concept of corporate social responsibility"

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a base banking account

Create a base banking account. Decide what characteristics are common for checking and saving accounts and include these characteristics in the base class

  Using an array in java

Using an array in Java - have a list of keywords from a web service and have to print out the list of keywords on the screen with one keyword on each line. This is my code

  Statements to create a collection of integers

Write Java statements to create a collection of integers, and to initialize each element of the collection to -1. Then, using a for each statement to print the value of each element.

  Program to calculate semester grade based on the scores

Write a java application program that takes in user input from keyboard and calculate semester grade based on the scores. I need help, to rewrite the program, instead of taking keyboard input, you will use dialog box to prompt user, take input, an..

  Allows the user to enter students names followed

Write a program that allows the user to enter students names followed by their test scores and outputs the following information(assume that the maximum nmber of students in the class is 50

  Development of a graphical user interface

Understand actual communication with an SMTP server can be achieved using TCP Sockets and understand the development of a graphical user interface (GUI) and use of event handling.

  Program implements the functionality of a deck of cards

Write a complete program using "ECLIPS" that implements the functionality of a deck of cards. In writing your program, use the provided DeckDriver and Card classes shown below. Write your own Deck class so that it works in conjunction with the two..

  Demonstrates conditions under which the compareto() method

Write an application that demonstrates conditions under which the compareTo() method retrun a positive number, a negative number, and a zero when used to compare two Strings, Save the file as CompareStringValues.java. Lab Assignment

  Write java program which will permit user to input data

Write the Java Program which will permit the user to input data. The data will be validated using a loop that requires the user to input the data until it is correct or in the correct range. T

  Program that generates an invoice for a hardware store

You are asked to write a program that generates an invoice for a hardware store.

  Design a class that you can use to track the books

Define a class PileOfBooks that implements the interface described in question one. use a resizeable array oin your implementation. then write unit test woth adequate test cases for your implementation of class PiloOfBooks.

  You are a mighty warrior and armed with your trusty bow and

you are a mighty warrior and armed with your trusty bow and 3 arrows you enter the caves in search of the mighty

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