Purchase Solution

Java Assistance and Writing Methods

Not what you're looking for?

Ask Custom Question

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.

Purchase this Solution

Solution Summary

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

Solution Preview

Dear student,

Please find the solution attached.

Thanks,
Kavita Narang

(--Please ...

Purchase this Solution


Free BrainMass Quizzes
Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

C# variables and classes

This quiz contains questions about C# classes and variables.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

C++ Operators

This quiz tests a student's knowledge about C++ operators.