Results 1 to 2 of 2
  1. #1
    sakusan808 is offline Member
    Join Date
    Sep 2011
    Rep Power

    Default Help with array for "students avg test scores."

    Hello everyone,

    Java is still kind of Greek to me and I just need help with my assignment. I'm having a little difficulty starting. I know I need to use a for loop but I don't know how much arrays I would need. Below is the problem that I have to code. Thanks in advance for all the help.


    From the book: ďA teacher has 5 students who have taken 4 tests. The teacher uses the following grading scale to assign a letter grade to a student, based on the average of his or her four test scores:
    Test score Letter grade
    90-100 A
    80-89 B
    70-79 C
    60-69 D
    0-59 F
    Demonstrate the class in a program that allows the user to enter each studentís name and his/her 4 test scores (or read them from a file). It should then display each studentís average test score and letter grade.
    Do not accept test scores less than 0 or greater than 100.Ē

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power

    Default Re: Help with array for "students avg test scores."

    You need to learn enough to be able to get started, and that can't be obtained from a forum such as this but rather from self-study of your texts or a tutorial (such as this one). We do better answering specific questions, and I invite you to come on back if you after your study and your attempt you have any.

Similar Threads

  1. Replies: 2
    Last Post: 09-07-2011, 07:03 PM
  2. Replies: 1
    Last Post: 01-21-2010, 09:20 AM
  3. Replies: 2
    Last Post: 01-24-2009, 06:56 PM
  4. Replies: 1
    Last Post: 10-20-2008, 07:35 AM
  5. the web site "monitor test page"
    By dubdubdub in forum New To Java
    Replies: 0
    Last Post: 11-28-2007, 07:48 AM

Posting Permissions

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