Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The program is supposed to have the computer randomly enter 3 test scores for 10

ID: 3628821 • Letter: T

Question

The program is supposed to have the computer randomly enter 3 test scores for 10 students then calculate the average and assign a letter grade. I have all the code written except for the part where it does the test scores. It comes back as each student getting the same random numbers and I'm not sure how to fix that. I'll post the program description and my code.
---------------------------------------------------------------------------------------------------------
Problem Description:     

1. Create a Data Element Class to hold an integer Student ID and three test scores  

2. Create methods to calculate average score and determine a letter grade.

3. Create get methods (properties) for average score and letter grade.

4. Include all other methods required for a complete data class.

5. Create an Unsorted Array Class to hold score records(objects).

6. Create Key-Access methods to Insert, Fetch, Update, and Delete.  

7. Include all other methods required for a complete data structure     class definition.       

8. Create a Tester Program to perform a simulation:   (by simulation it is meant that the program enters the scores for test 1, then test 2, then test 3)

a) insert 10 students   

b) enter scores for Test #1 and show list.   

c) enter scores for Test #2 and show list.   

d) enter scores for Test #3 and show list.   

e)compute average and grade, and show list

------------------------------------------------------------------------------------------------

I pasted my code here: http://pastebin.com/T6yWERTJ

 

Explanation / Answer

i think you could create a random generator.

Random rand = new Random();

then replace Math.random() with rand.nextDouble()

you should be able to get different random numbers