Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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!

  • #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,930
    Thanks
    56
    Thanked 552 Times in 549 Posts

  • #3
    Regular Coder
    Join Date
    Mar 2006
    Posts
    727
    Thanks
    35
    Thanked 132 Times in 123 Posts
    You might want to look another language forum.
    javascript has no integer or void type,
    and main is not a keyword.

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,925
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •