A statement telling the user if they get a discount or not

Assignment Help JAVA Programming
Reference no: EM13940388

I need helping figuring this lab exercise.
Writing Methods with No Parameters
The program asks the user if they have pre-registered for a conference. If the user has pre-registered, the program should call a method named discount () that displays the message "You are pre-registered and qualify for a 10% discount." If the user has not pre-registered, the program should call a method named noDiscount () that displays the message "Sorry, you did not pre-register and do not qualify for a 10% discount."
I need help writing the Java Statements.
// ConferenceDiscount.java - This program determines if a conference attendee gets a 10% discount
// for pre-registering.
// Input: Interactive.
// Output: A statement telling the user if they get a discount or no discount.

importjavax.swing.*;

publicclassConferenceDiscount
{
publicstaticvoid main(String args[])
{

String registerString;

registerString = JOptionPane.showInputDialog("Did you pre-register? Enter Y or N: ");

// Test input here. If Y, call discount(), else call noDiscount().


System.exit(0);

} // End of main() method.


// Write discount method here.


// Write noDiscount method here.


} // End of ConferenceDiscount class.

Reference no: EM13940388

Questions Cloud

Describe the major stakeholders of your chosen organization : Write a paper of 700- to 1,050- words explaining the roles and responsibilities of the controller for the financial function of the organization. Describe the major stakeholders of your chosen organization
Victim of the slippery slope phenomenon : 1. Psychologist Dan Ariely says that "the first dishonest act is the most important one to prevent." Why does he say that? Do you agree? 2. Can you think of a situation where you were a victim of the slippery slope phenomenon?
How does leverage affect the cost of equity : In perfect capital markets, how does the choice of leverage impact firm value? Which of the following is true about agency considerations in finding the optimal capital structure for a firm? In perfect capital markets, how does leverage affect the co..
Analyse the australian container and freight services : You need to analyse the companys ACFS - Australian container and freight services current logistics management related to a current issue facing logistics management in Australia today.
A statement telling the user if they get a discount or not : The program asks the user if they have pre-registered for a conference. If the user has pre-registered, the program should call a method named discount () that displays the message "You are pre-registered and qualify for a 10% discount.
Motivate staff through formal appraisal of performance : Explain how you as a manger can motivate staff through this formal appraisal of performance and how self- appraisal by the staff member can also motivate future performance
Expects to generate net income : Nielson expects to generate net income of $20 million over the next year. Currently Nielson has 8 million shares outstanding and its stock is trading at $20.00 per share. Nielson's EPS is closest to __________.
What is the implied value of the firm growth : What is the stock selling for?  If earnings are $3.10 a share, what is the implied value of the firm's growth opportunities?
What is the cost formula for monthly shipping cost : Suppose a company finds that shipping cost is $3,560 each month plus $6.70 per package shipped. What is the cost formula for monthly shipping cost?

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