Explore BrainMass

Java Assistance and Writing Methods

I need assistance in processing this java assignment so that I can do the problem for my group assignment. I am having issues trying to understand the java statements.

This is not the actual assignment that I will be handing in. The assignment I have to hand in as a group is Multiple Parameters but it is working with a file called Arithmetic.Java.

I took off the exercise I wanted to check to make sure I was doing everything correctly.

This program continuously prompts the user for an integer until the user enters 0. The program then passes the value to a method that computes the sum of all the whole numbers from 1 up to and including the entered number. Next, the program passes the value to another method that computes the product of all the whole numbers up to and including the entered number. I need to write the Java statements.

Please refer to attachment for full detail.


Solution Preview

Dear student,

Please find the solution attached.

Kavita Narang

(--Please ...

Solution Summary

The following posting helps with a problem that involves Java programming.