jay bob

Greenhorn
+ Follow
since Jan 24, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by jay bob

jay bob wrote:

fred rosenberger wrote:we don't hand out answers to homework here, but folks will bend over backwards to help you. Show us what you've done and tell us what works (and what doesn't), and you'll get tons of responses.



um well, i failed this part of my homework and i honestly have no clue what to do well sorta but i don't got the right idea.



edit: ok heres what i got so far could someone please PLEASE correct this for me


14 years ago

fred rosenberger wrote:we don't hand out answers to homework here, but folks will bend over backwards to help you. Show us what you've done and tell us what works (and what doesn't), and you'll get tons of responses.



um well, i failed this part of my homework and i honestly have no clue what to do well sorta but i don't got the right idea.
14 years ago
1)generateArray populate array with 35 random numbers from 1-100

2)getElement: returns the value of the element of the array specified by a parameter passed to a method. this will be called with a statement suck as number= getElement(25);

3)printArray from 0-34

4)main method call generate Array, printArray, then repeatedly asks the user which element they like to see, and display that element using getElement, until the user enter -1

i managed to get number 3) down and 1)..sort of but i have no idea how to do the getelement method and the main method, btw i'm doing this on the program known as bluej and i need a lot of help please
14 years ago