Question: please explain how you did it Programming Assignment One Programming Assignment One The student will develop a Java program that will populate 2,000 student records




Programming Assignment One Programming Assignment One The student will develop a Java program that will populate 2,000 student records with a grade ranging from 70 to 100. The grade, expressed as an integer, will be produced by Java's random method. The project will be named: CPS121Student Gradingan Where "nn" is your first and last initials. The program will be implemented using a single dimensional array as in: static int student Grade new int [NUMBER STUDENTS); Note "NUMBER STUDENTS' is an integer constant, as in: static final int NUMBER STUDENTS 2000: The dummy data will be generated by the Java utility class Random, as in: studentGrade Index] - generator.nextInt ((MAX STUDENT GRADE - MIS STUDENT GRADE) +1) MIN STUDENT GRADE; Note: you must import the Random class, as in: import java.util. Random; You will also have to declare "MAX_STUDENT_GRADE" and "IN_STUDENT_GRADE" as integer constants as static final int MAX STUDENT GRADE -100; static final int MIN STUDENT GRADE 70: There will be a single line output for each student, as in: Value of student Grade[O] - 84 Value of student Grade [1999] = 76 Using a print statement, as in: System.out.println("Value of student Grader + index + ] -" + studentGrade index]); The generation of the random grade (integer) between 70-100, as well as the printing of each student output line will be controlled by a for statement, as in for (int index = 0; index
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
