Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please explain how you did this The student will develop a Java program that will populate 2,000 student records with a grade ranging from 70

please explain how you did this image text in transcribed
image text in transcribed
image text in transcribed
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 Gradingnn 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 - MIN_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 "MIN_STUDENT_GRADE" as integer constants as in: 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 studentGrade[0] = 84 Value of student Grade [1999] = 76 Using a print statement, as in: System.out.println("Value of student Grade + 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Postgresql 16 Administration Cookbook Solve Real World Database Administration Challenges With 180+ Practical Recipes And Best Practices

Authors: Gianni Ciolli ,Boriss Mejias ,Jimmy Angelakos ,Vibhor Kumar ,Simon Riggs

1st Edition

1835460585, 978-1835460580

More Books

Students also viewed these Databases questions