Computing.Net > Forums > Programming > Java - Basic - Need Help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Java - Basic - Need Help

Reply to Message Icon

Name: Kiki1597
Date: November 10, 2004 at 05:02:18 Pacific
OS: Windows XP Home
CPU/Ram: AMD, 256MB
Comment:

Hi, I am brand new to the Java world and am trying to learn as much as possible, however, I'm not learning in my mother tongue, therefore it is a bit more difficult.

I need to write a program which will allow the user to input a string of numbers (unlimited number) and then the program has to determine which is the largest number, which is the smallest number, and then figure out an average of all of the numbers.

So I know that I need to figure out a way to write a program to determine the largest/smallest numbers.

I also have to write part of the program to add all of the numbers input, then divide by the number of numbers input...therefore resulting in an average.

My problem is that I have no idea where to begin and it's rather difficult to start a program, not knowing how to begin. If anyone has time to help me figure this out, I'd appreciate it very much.

Thanks to anyone who can help me.



Sponsored Link
Ads by Google

Response Number 1
Name: kitlenv
Date: November 11, 2004 at 01:50:20 Pacific
Reply:

first,do u know the how to use java language?no study it.
second, go to download a sdk, commonly, j2sdk.
third, install the sdk, and put forward a right configuration.
fourth, write your java program, make usr the main calss must match the source file name.
fifth, compile the source file,using javac.exe.
sixth, run the program using java.exe.

any step you don't know it clearly, you can send email to me.Also, you can go to java.sun.com to get some help(for fun!:))


0

Response Number 2
Name: serign
Date: November 13, 2004 at 10:15:55 Pacific
Reply:

O.K. after uve downloaded the jdk, installed and everything, u need 2 determine how 2 enter the numbers 1st. For a beginner, i wud suggest using the command line arguements. Then determine the number of arguements passed, oh and use casting 2 convert the arguements to numbers cos they gona be strings. Then i suggest u create a for loop with 2 variables inside it, use one variable 2 store the total value of all the numbers and use the oda variable 2 store the largest number. email me if u have any oda questions


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Java - Basic - Need Help

Need help with a Java Program www.computing.net/answers/programming/need-help-with-a-java-program/12412.html

Simple Java Question www.computing.net/answers/programming/simple-java-question/11523.html

Need help with an SQL join query www.computing.net/answers/programming/need-help-with-an-sql-join-query/13358.html