Allan Hancock College Create a Java Code Computer Programming Task

Description

https://prnt.sc/26sfdz6https://prnt.sc/26sfe4d

4 attachmentsSlide 1 of 4attachment_1attachment_1attachment_2attachment_2attachment_3attachment_3attachment_4attachment_4

Unformatted Attachment Preview

import java.io.File;
import java.io.FileNotFoundException;
import java.util.*;
// TODO: first create your Student class
public class Main
{
public static void main(String[] args)
{
// TODO: make an ArrayList of type Double (for the constants)
// TODO: make a LinkedList of type Student (for the students)
// TODO: call a method to load constants, returning an ArrayList of Doubles
// TODO: call a method to load students, returning a LinkedList of Students
// TODO: call the printStuff method with the list of constants
// TODO: call the printStuff method with the list of students
// TODO: sort the list of students with Collections.sort()
// TODO: call the printStuff method again with the list of students
// TODO: call the trimStudents() method
// TODO: call the printStuff method again with the list of students
}
// TODO: create a method loadConstants() which returns an ArrayList of Doubles
// TODO: uncomment this method below
/*
private static LinkedList loadStudents()
{
File file = new File(“res/roster.csv”);
Scanner reader;
try
{
reader = new Scanner(file);
}
catch (FileNotFoundException e)
{
System.err.println(“Could not find file: ” + file.toPath());
return null;
}
LinkedList students = new LinkedList();
reader.nextLine(); // eat header
while (reader.hasNext())
{
String line = reader.nextLine();
StringTokenizer tokenizer = new StringTokenizer(line, “,n”);
String last = tokenizer.nextToken();
String first = tokenizer.nextToken();
float grade = Float.valueOf(tokenizer.nextToken());
Student s = new Student(first, last, grade);
students.add(s);
}
return students;
}
*/
// TODO: create a printStuff() method that takes a List of anything and prints it
// TODO: create a trimStudents() method that takes a LinkedList of Students
// and a double for the filter amount, which then iterates through the
// LinkedList of Students with an Iterator and removes any Student with
// a grade less than 90
}
Last
First
Planck
Max
SchrodingerErwin
Newton Isaac
Hawking Stephen
Dirac
Paul
Einstein Albert
Bohr
Niels
Galilei
Galileo
Faraday Michael
Maxwell James
Feynman Richard
Fermi
Enrico
Oppenheimer
Robert
Grade
84
87
92
96
100
93
88
92
90
91
89
85
77
3.14159
1.41421
1.61803
9.81
0.26149
0.57721
299792458
42
1.30357

Purchase answer to see full
attachment

User generated content is uploaded by users for the purposes of learning and should be used following Studypool’s honor code & terms of service.

Looking for this assignment?

do my essay homework

Reviews, comments, and love from our customers and community

Article Writing

Great service so far. Keep doing what you do, I am really impressed by the work done.

Alexender

Researcher

PowerPoint Presentation

I am speechless…WoW! Thank you so much! Definitely, the writer is talented person. She provided me with an essay a day early before the due date!

Stacy V.

Part-time student

Dissertation & Thesis

This was a very well-written paper. Great work fast. I was in pretty desperate need for help to finish this paper before the due date, which was in nine hours.

M.H.H. Tony

Student

Annotated Bibliography

I love working with this company. You always go above and beyond and exceed my expectations every time. Kate did a WONDERFUL job. I would highly recommend her.

Francisca N.

Student

Book Report / Review

I received my order wayyyyyyy sooner than I expected. Couldn’t ask for more. Very good at communicating & fast at replying. And change & corrections she put in the effort to go back and change it!

Mary J.

Student

Essay (Any Type)

On time, perfect paper. All concerns & matters I had Tom was able to answer them! I will definitely provide him with more orders!

Prof. Kate (Ph.D)

Student

Case Study

Awesome! Great papers, and early! Thank you so much once again! Definitely recommend to trust James with your assignments! He won’t disappoint!

Kaylin Green

Student

Proofreading & Editing

Thank you Dr. Rebecca for editing my essays! She completed my task literally in 3 hours. For sure will work with her again, she is great and follows all instructions

Rebecca L.

Researcher

Critical Thinking / Review

Extremely thorough summary, understanding and examples found for social science readings, with edits made as needed and on time. It’s like having a tutoring service available (:

Arnold W.

Customer

Coursework

Perfect!I only paid about $80, which i think was a good price considering what my paper entailed. My paper was done early and it was well written!

Joshua W.

Student

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>