Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2008

Tip: Looking for answers? Try searching our database.

explaination and steps

Thread view: 
ells912@gmail.com - 16 Apr 2008 14:14 GMT
a.  How to  write a program that asks the user to enter any number of
integers that are in the range of 0 to 30 inclusive and count how many
occurrences of each number are entered.  Use a suitable sentinel to
signal the end of input. Print out only the numbers (with the number
of occurrences) that were entered one or more times.

b.  In a gymnastics or diving competition, each contestant's score is
calculated by dropping the lowest and highest scores and then adding
the remaining scores. Write a program that allows the user to enter
eight judges' scores and then outputs the point received by the
contestant. A judge awards point between 1 and 10, with 1 being the
lowest and 10 being the highest. For example, if the scores are:
    9.2, 9.3, 9.0, 9.9, 9.5, 9.5, 9.6 and 9.8
     the contestant receives a total of 56.9 points.

For both questions need to use array. Since i am not really good with
this topic, can somebody explain what is all about?? I am really
stuck !! thanks.
Jeff Higgins - 16 Apr 2008 15:18 GMT
ells912 wrote:
> a.  How to  write a program?
> b.  Write a program!

<http://home.earthlink.net/~patricia_shanahan/beginner.html>
<http://mindprod.com/jgloss/gettingstarted.html>

> For both questions need to use array.

<http://xahlee.org/java-a-day/arrays.html>

> Since i am not really good with
> this topic, can somebody explain what is all about?? I am really
> stuck !! thanks.
RedGrittyBrick - 16 Apr 2008 15:48 GMT
>> For both questions need to use array.
>
> <http://xahlee.org/java-a-day/arrays.html>

http://tinyurl.com/iatf

http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html

Signature

RGB

Jeff Higgins - 16 Apr 2008 17:00 GMT
> http://tinyurl.com/iatf :) Sorry, couldn't help it.
>
> http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html
Patricia Shanahan - 16 Apr 2008 17:07 GMT
> a.  How to  write a program that asks the user to enter any number of
> integers that are in the range of 0 to 30 inclusive and count how many
[quoted text clipped - 14 lines]
> this topic, can somebody explain what is all about?? I am really
> stuck !! thanks.

These exercises combine use of arrays with processing user input. If you
are not already comfortable with at least one of those topics you should
split the issues.

To improve your array skills, do each exercise with the input data
already in an array.

To learn user input, practice reading single numbers, then groups of
numbers, and e.g. printing the square of each input.

If there were earlier exercises for either of these topics, go back over
them and make sure you really understand them. Programming is a
cummulative subject - if you do not understand an earlier topic you will
have a lot of trouble learning later ones.

Patricia
Roedy Green - 16 Apr 2008 20:48 GMT
>For both questions need to use array. Since i am not really good with
>this topic, can somebody explain what is all about?? I am really
>stuck !! thanks.

see http://mindprod.com/jgloss/array.html
see http://mindprod.com/jgloss/homework.html
see http://mindprod.com/jgloss/newsgroups.html

Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.