Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-27-2012, 03:52 AM   PM User | #1
James1222
New to the CF scene

 
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
James1222 is an unknown quantity at this point
Need help writing a script

Yes, I have read the sticky about homework.. and before you call me a lazy sack, I will have to blame it all on my teacher... He knows almost nothing about the Java, and yet, he is teaching a computer programming class...

This assignment is due soon, and I have no idea how you even start this..Really appreciate it if some1 can do this for me..

Assignment: Create a new 'Array' Project and create a java file that does the following.
-Print your arrays going across the screen(horizontally)
-Creating the arrays should be done in main
-All other tasks should be in separate methods
-Your arrays should be passed as a parameters
-All methods should have a void return type

1.a)Create an array of 100 integers called nums. (All 1000 grades will automatically be initialized to 0)
b) Fill the array with 1000 random numbers between 10 and 99.
c) Print the grades forwards
d) Print the grades backwards.
e) Find the average of the grades and print the average

2 a) Create an array of 6 Strings called names (all 6 names will automatically be initialized to null.)
b) Fill your array with 6 names (you will have to do this individually).
c) Print all names that start with a vowel.

Thank to so much if someone really help me with this!
James1222 is offline   Reply With Quote
Old 01-27-2012, 04:14 AM   PM User | #2
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,461
Thanks: 52
Thanked 457 Times in 455 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
http://www.codingforums.com/forumdisplay.php?f=54
xelawho is offline   Reply With Quote
Old 01-27-2012, 06:05 AM   PM User | #3
mrhoo
Regular Coder

 
Join Date: Mar 2006
Posts: 710
Thanks: 31
Thanked 128 Times in 119 Posts
mrhoo will become famous soon enoughmrhoo will become famous soon enough
You might want to look another language forum.
javascript has no integer or void type,
and main is not a keyword.
mrhoo is offline   Reply With Quote
Old 01-27-2012, 07:38 AM   PM User | #4
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,105
Thanks: 197
Thanked 2,422 Times in 2,400 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
This is the JavaScript forum. Java and Javascript are entirely different programming languages, in spite of the confusingly similar names. Rather like Austria and Australia!

We will not do your homework for you - you may ask for help, but you must make a substantial effort yourself. Then you can ask for assistance to correct/improve your work.

It is your responsibility to die() if necessary….. - PHP Manual
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Philip M is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:25 AM.


Advertisement
Log in to turn off these ads.