Write java classes for the class diagram you dont need to


1. Write Java classes for the following class diagram. You don't need to write any set and get methods for simplicity.

https://secure.tutorsglobe.com/CMSImages/1159_Java%20classes.png

 

II. Write a Java class for the following class diagram. You don't need to write any set and get methods for simplicity.

Class StudentScore

+ stuName : string

+ gpa : double

+ totalScores : HashMap

+ program : string

+ StudentScore(// declares necessary parameters)

III. Write the following method that takes an LinkedList of Student objects as argument and . create a HashMap of StudentScore objects. Each object's totalScores is a HashMap of courses' total homework scores for each Student object in the LinkedList

HashMap getScoreList( LinkedList list)

IV. Write the following method to print all the student objects in the LinkedList. void printAll( HashMap scoreList )

V. Write the following method that takes an ArrayList of StudentScore objects and write all items to a Text file. Each field is separated by a tab \t. In your method, you need to use "try with resource" statement. Here is a sample of the file.

void saveFile( ArrayList scoreList )

Name

 

Peter

GPA

 

3.8

Program

 

MSEE

TotalCourses

 

2

EE205

80

 

 

EE450

70

 

 

Jim

3.5

MSCS

3

CS204

70

 

 

CS350

10

 

 

CS360

100

 

 

VI. Write a method that returns the ArrayList of Student objects who has only one homework score in any of his/her courses.

public ArrayList getProblemStudents(LinkedList list)

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write java classes for the class diagram you dont need to
Reference No:- TGS0818054

Now Priced at $40 (50% Discount)

Recommended (92%)

Rated (4.4/5)