Question: Helpp due in 30minutes Name : Date : ArrayList Worksheet 2 DIRECTIONS: Fill in each blank with the correct answer/output. Assume each statement happens in
Name : Date : ArrayList Worksheet 2 DIRECTIONS: Fill in each blank with the correct answer/output. Assume each statement happens in order and that one statement may affect the next statement. public class drade //data not shown publie Grade (double all //eode not shown publio get NumericGradet) //geta numerio grade ) publie string getLotterdrade (//geta letter grade associated with numerie grade) publie String tostring() return get NumericGrade()+"="+ getLetterGrade(); } //test code in a client class //instantiate an ArrayList of Grade references (objects) //write the code to load in 8 random Grade references between 0-100 - use a for loop // write the code to print out each of the Grades in the ArrayList in reverse order 77write the code to print out each of the 8 Grades as a letter grade 7/use an enhanced for loop to return the number of A's in the ArrayList grades public int countAs ( ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
