Explore BrainMass

Explore BrainMass

    Java application problem

    Not what you're looking for? Search our solutions OR ask your own Custom question.

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

    Please help with the following problem.

    Assistance with writing a program that will accept an unknown number of positive integers from the user (-1 to stop) and display their average." The application does not work correctly. Correct all the errors and also reformat to be consistent with good style standards.

    I have uploaded a code for average numbers:

    List any challenges that are encountered including compilation errors, logic errors, or runtime errors you had to resolve.

    Rewrite the code new code once it has been done also.

    © BrainMass Inc. brainmass.com December 24, 2021, 8:09 pm ad1c9bdddf
    https://brainmass.com/computer-science/java/java-application-problem-252514

    Attachments

    Solution Preview

    Hello student,
    I have attached the completed solution.

    /* AverageNumbers
    * This program will get an unknown number of numbers from the user
    * and determine their average. The user will quit by entering a -1
    *
    * IT171 DB1
    *
    * Changes done:
    * 1. Change in the Program file name (AverageNumbers.java), because
    * in java the Program file name should be same as Class name which contains the main method
    *
    * 2. Included a IF condition ...

    Solution Summary

    This solution helps with java application problems.

    $2.49

    ADVERTISEMENT