Explore BrainMass
Share

Explore BrainMass

    Java Writing Methods with No Parameters

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    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."

    ** Please see the attachment for the full question details **

    © BrainMass Inc. brainmass.com October 10, 2019, 5:06 am ad1c9bdddf
    https://brainmass.com/computer-science/java/java-writing-methods-parameters-492384

    Attachments

    Solution Preview

    Dear student,

    ** Please see the attached file for the complete solution **

    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 ...

    Solution Summary

    This solution provides help with a Java script writing exercise and includes a step-by-step explanation.

    $2.19