Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write the code of public static double [] generateRandomGrades (Random random) that generates an array of 5 random grade between 40 and 100


image

1. Write the code of public static double [] generateRandomGrades (Random random) that generates an array of 5 random grade between 40 and 100 inclusive (5 marks) 2. Add a code in the main () method that instantiates 5 grade objects and initializes each grade to random grades, and store them in ArrayList grades (see figure 2 on page 5) (20 marks) Windows PowerShell PS F:\Teaching\Langara\spring-2023\CPSC-1181-Object-Oriented-Computing\myExamples\eclipse\grade> javac -d bin src/grade/*.java PS F:\Teaching\Langara\spring-2023\CPSC-1181-Object-Oriented-Computing\myExamples\eclipse\grade> java -cp bin util.TestingGrade [ | Quizzes Grade: 79.06 | Labs Grade: 78.62 | Assignments Grade: 94.78 | Midterm Exam Grade: 47.59 | Final Exam Grade: 51.74 Course Grade: 63.74 Grade Letter: C Quizzes Grade: 53.91 | Labs Grade: 99.98 | Assignments Grade: 89.27 Midterm Exam Grade: 76.86 Final Exam Grade: 53.21 Course Grade: 70.49 Grade Letter: B- Quizzes Grade: 65.06 Labs Grade: 61.44 | Assignments Grade: 89.46 Midterm Exam Grade: 73.69 | Final Exam Grade: 92.00 Course Grade: 79.03 | Grade Letter: B+ Quizzes Grade: 85.98 | Labs Grade: 44.71 Assignments Grade: 60.66 Midterm Exam Grade: 58.25 | Final Exam Grade: 60.25 Course Grade: 62.02 | Grade Letter: C- Quizzes Grade: 91.83 Labs Grade: 67.40 Assignments Grade: 90.41 Midterm Exam Grade: 51.28 Final Exam Grade: 60.95 Course Grade: 67.75 Grade Letter: C+ | OX ] PS F:\Teaching\Langara\spring-2023\CPSC-1181-Object-Oriented-Computing\myExamples\eclipse\grade>

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_2

Step: 3

blur-text-image_3

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

Matlab An Introduction with Applications

Authors: Amos Gilat

5th edition

1118629868, 978-1118801802, 1118801806, 978-1118629864

More Books

Students also viewed these Algorithms questions

Question

What are the costs of declaring bankruptcy?

Answered: 1 week ago