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

  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