Statistics program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • frozzenn
    New Member
    • Oct 2007
    • 6

    #1

    Statistics program

    Hello guys,

    Need any advise, any tip on how to write this program:(coz I'm really stuck with this)

    1. Allow a user to enter a number of results (a value between 2 & 30)

    2. Process the required number of results by

    • Allowing a user to enter a students name
    • Allowing a user to enter a students grade (a value between 1 & 100).

    3. When data entry is complete, display a menu with the following options

    • Display average class grade
    • Display highest class grade
    • Display lowest class grade
    • Sort & Display the grades in ascending order
    • Search for an individual student by name

    4. For each of the above functions, you are required to implement an appropriate method


    I'm not asking to do it, just some tips to put me on track.
    Thank you
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by frozzenn
    Hello guys,

    Need any advise, any tip on how to write this program:(coz I'm really stuck with this)

    1. Allow a user to enter a number of results (a value between 2 & 30)

    2. Process the required number of results by

    • Allowing a user to enter a students name
    • Allowing a user to enter a students grade (a value between 1 & 100).

    3. When data entry is complete, display a menu with the following options

    • Display average class grade
    • Display highest class grade
    • Display lowest class grade
    • Sort & Display the grades in ascending order
    • Search for an individual student by name

    4. For each of the above functions, you are required to implement an appropriate method


    I'm not asking to do it, just some tips to put me on track.
    Thank you
    You can start by learning how to use the Scanner class to get input from the user

    Comment

    • heat84
      New Member
      • Nov 2007
      • 118

      #3
      Alternatively , I think System.out.prin tln and readLine methods of the console can be helpful.

      Comment

      Working...