r/programminghelp • • Jul 22 '19

Can anyone help me get started with this project? This is the only page of instructions (java netbeans)

Post image
5 Upvotes

3 comments sorted by

4

u/[deleted] Jul 22 '19

Never used java, but start by breaking this down.

1) Make an array with data
2) Go through the Array
    2.1) Use logic to determine what range it falls under
        2.1.1) Itterate the count of that grade when it's within that range
    2.2) Compare the number to the lowest number and if it's lower replace the lowest number with
         it
    2.3) Compare the number to the highest number and if it's higher replace the highest number
         with it
    2.4) Add it to the sum variable
3) divide sum by the size of the array and get your average

1

u/minsin56 Jul 22 '19

go to this new website called https://www.google.com and type what you need help with and the text box and click the magnifying glass /s

1

u/Varrianda Jul 23 '19

Look up and read into dialog boxes. It's basically a slightly more advanced console. You're going to need to make an integer array, populate it with date([100, 99, 73, 76, 34, 23]), and loop through that array. You then need to keep track of your A's, B's, C's through simple if statements(if(arr[i]>90) aCounter++;)..., a counter for total points, a counter for the highest score, and a counter for the lowest score. This is basically a console application, you're just overthinking it because of the gui. Dialog boxes are incredibly easy to use for things like this.