Reference no: EM13550126
1. Write Java classes for the following class diagram. You don't need to write any set and get methods for simplicity.
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<String, double>
+ 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<String, StudentScore > getScoreList( LinkedList <Student> list)
IV. Write the following method to print all the student objects in the LinkedList. void printAll( HashMap<String, StudentScore > 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<StudentScore > 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<Student> of Student objects who has only one homework score in any of his/her courses.
public ArrayList<Student> getProblemStudents(LinkedList<Student> list)
Determine the magnitude of the heat that he has lost
: In a game of football outdoors on a cold day, a player will begin to feel exhausted after using approximately 8.0 × 105 J of internal energy. What is the magnitude of the heat that he has lost
|
Determine the weight of the beam
: A uniform beam of length 12 m is supported by a horizontal cable of mass 5 kg at the top and a hinge at the bottom making a 45-45-90 triangle. determine the weight of the beam
|
Explain how many isomers of the alkenes
: How many isomers of the alkenes having the molecular formula C6H12 would have "trans" or "E" in their name
|
Determine how far would this machine slide
: A 30 kg launching machine fires a 250 gram projectile horizontally at 100 m/s. This causes the machine to slide backward 1.122 meters before coming to a rest. how far would this machine slide
|
Write java classes for the class diagram
: Write Java classes for the class diagram. You don't need to write any set and get methods for simplicity.
|
Explain what is the mass of co at equilibirium
: If 23 g of carbon dioxide and 50g of graphite are placed in a 2 L reaction vessel and heated to 850°C. What is the mass of CO at equilibirium
|
Calculate the phase angle of the circuit
: A series RCL circuit includes a resistance of 520 ohms, an inductance of 166 mH, and a capacitance of 500 nF. There is an alternating current of 660 Hz. What is the phase angle of the circuit
|
Define a gas company in boston charges
: A gas company in Boston charges $1.30 for 15.0ft3(cube) of natural gas,if it takes 0.304ft3(cube) of gas to boil a liter of water.starting at room temperature(25 degree Celsius),how much would it cost to boil 2.1-L kettle of water
|
Estimate how many maxima does it detect
: Two radio-frequency point sources separated by 1.5 m are radiating in phase with ? = 0.30 m. How many maxima does it detect
|