aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Please help me - accumulating scores! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Please help me - accumulating scores! " Watch "Please help me - accumulating scores! " New topic
Author

Please help me - accumulating scores!

Tayler Mac
Greenhorn

Joined: Nov 14, 2009
Posts: 1
I need to keep count of how many scores are entered using the enterButton, accumulate those scores and find the average score, best score and worst score. Without using arrays. But I'm kind of stuck. My code compiles but it doesn't run correctly. Can someone please help me??



Please help me!!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39436
    
  28
Welcome to JavaRanch

Start from scratch. with a pencil and paper. Write down something like this
  • Somebody enters 65
  • How many scores have I got?
  • What is the worst score to date
  • What is the best score you have to date?
  • Somebody enters a different score
  • etc
  • It is quite easy, if you break it down into tiny steps like that and think how you are going to handle each of them.
    Campbell Ritchie
    Sheriff

    Joined: Oct 13, 2005
    Posts: 39436
        
      28
    And start with a command-line version of your application. If you can't get the functionality, adding a GUI on top simplymakes things more difficult for you.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Please help me - accumulating scores!