Given main(), complete the SongNode class to include the printSongInfo() method.

Given main(), complete the SongNode class to include the printSongInfo() method. Then write the Playlist class’ printPlaylist() method to print all songs in the playlist. DO NOT print the dummy head node.
Ex: If the input is:
Stomp!
380
The Brothers Johnson
The Dude
337
Quincy Jones
You Don’t Own Me
151
Lesley Gore
-1
the output is:
LIST OF SONGS
————-
Title: Stomp!
Length: 380
Artist: The Brothers Johnson
Title: The Dude
Length: 337
Artist: Quincy Jones
Title: You Don’t Own Me
Length: 151
Artist: Lesley Gore
import java.util.Scanner;
public class Playlist {
// TODO: Write method to ouptut list of songs
public static void main (String[] args) {
Scanner scnr = new Scanner(System.in);
SongNode headNode; SongNode currNode;
SongNode lastNode;
String songTitle;
int songLength;
String songArtist;
// Front of nodes list headNode = new SongNode();
lastNode = headNode;
// Read user input until -1 entered
songTitle = scnr.nextLine();
while (!songTitle.equals(“-1”)) {
songLength = scnr.nextInt();
scnr.nextLine();
songArtist = scnr.nextLine();
currNode = new SongNode(songTitle, songLength, songArtist);
lastNode.insertAfter(currNode);
lastNode = currNode;
songTitle = scnr.nextLine();
}
// Print linked list
System.out.println(“LIST OF SONGS”);
System.out.println(“————-“);
printPlaylist(headNode);
}
}

I Have upload the file you will need and I will send the link through google dri

I Have upload the file you will need and I will send the link through google drive to check on everything Assignment Directions can be found here Download here.
Click here Download herefor driver file.
Click here Download herefor the python test script and here Download herefor the sample solution text file.
Make sure to include a comment header at the top of your file like the example below. If you don’t do it exactly like this, then points will be deducted in accordance with the rubric.
/* Johnny Knights
* Dr. Steinberg
* COP3503 Spring 2024
* Programming Assignment 3
*/
Rubric
Programming Assignment 3
Programming Assignment 3
CriteriaRatingsPts
This criterion is linked to a Learning OutcomeCode CompilationDid the student’s file compile successfully with no errors or warnings?
15 ptsFull Marks
Code compiled with no errors or warnings.
10 ptsPartial Marks
Code compiled, however warnings were generated.
6 ptsLow Marks
Code didn’t compile at all.
0 ptsNo Marks
No code submission was received.
15 pts
This criterion is linked to a Learning OutcomeProgram RunDid the program run successfully without crashing on Eustis?
5 ptsFull Marks
Program ran successfully on Eustis and did not crash.
2.5 ptsHalf Marks
Program ran on Eustis, however it crashed in the middle of the run or did not finish running within the time constraint.
0 ptsNo Marks
No code submission was received or could not run at all on Eustis.
5 pts
This criterion is linked to a Learning OutcomeImplementation of the Tomatoes ClassDid the student properly the Tomatoes Class based on the assignment directions?
5 ptsFull Marks
The class was implemented properly.
2.5 ptsHalf Marks
The class had some things missing that were specified in the assignment. Attributes, methods, etc…
0 ptsNo Marks
No code submission was received OR the code is extremely way off from what the assignment specified.
5 pts
This criterion is linked to a Learning OutcomeminTomatoMovesDid the student properly implement the minTomatoMoves method by using a greedy technique?
20 ptsFull Marks
The method was solved perfectly and a greedy technique was applied properly.
15 ptsHigh Marks
The method uses a greedy technique, however there exists one error.
10 ptsHalf Marks
The method uses a greedy technique, however there exists two – three errors.
5 ptsLow Marks
The method uses a greedy technique, however there exists more than three errors.
0 ptsNo Marks
No code submission was received or could not run at all on Eustis. OR Greedy Technique was not applied.
20 pts
This criterion is linked to a Learning OutcomeTheoretical Running Time ConstraintDoes the program satisfy the theoretical running time constraint O(n)?
10 ptsFull Marks
Yes!
0 ptsNo Marks
No.
10 pts
This criterion is linked to a Learning OutcomeTest Case 1Did Test Case 1 produce the correct answer?
5 ptsFull Marks
Yes!
0 ptsNo Marks
No!
5 pts
This criterion is linked to a Learning OutcomeTest Case 2Did Test Case 2 produce the correct answer?
5 ptsFull Marks
Yes!
0 ptsNo Marks
No!
5 pts
This criterion is linked to a Learning OutcomeTest Case 3Did Test Case 3 produce the correct answer?
5 ptsFull Marks
Yes!
0 ptsNo Marks
No!
5 pts
This criterion is linked to a Learning OutcomeTest Case 4Did Test Case 4 produce the correct answer?
5 ptsFull Marks
Yes!
0 ptsNo Marks
No!
5 pts
This criterion is linked to a Learning OutcomeTest Case 5Did Test Case 5 produce the correct answer?
5 ptsFull Marks
Yes!
0 ptsNo Marks
No!
5 pts
This criterion is linked to a Learning OutcomeTest Case 6Did Test Case 6 produce the correct answer?
5 ptsFull Marks
Yes!
0 ptsNo Marks
No!
5 pts
This criterion is linked to a Learning OutcomeTest Case 7Did Test Case 7 produce the correct answer?
5 ptsFull Marks
Yes!
0 ptsNo Marks
No!
5 pts
This criterion is linked to a Learning OutcomeTest Case 8Did Test Case 8 produce the correct answer?
5 ptsFull Marks
Yes!
0 ptsNo Marks
No!
5 pts
This criterion is linked to a Learning OutcomeCode Style and CommentsDid the student follow proper coding style techniques along with sufficient comments?
2.5 ptsFull Marks
Student used good coding style and provided sufficient number of comments.
1.25 ptsHalf Marks
Student somewhat used good coding style and provided sufficient number of comments. There were error(s) detected.
0 ptsNo Marks
Student did not used good coding style and provided sufficient number of comments.
2.5 pts
This criterion is linked to a Learning OutcomeCode Submission and HeaderDid the student properly named the .java file as stated in directions? Did the student provide a comment header at the top of the code file that contained (name, course, professors, assignment)?
2.5 ptsFull Marks
The student followed all directions of the naming the submission properly and providing a proper header at the top of the file.
1.25 ptsHalf Marks
The student somewhat followed directions of naming the submission properly and providing a proper header at the top of the file. There was an error detected.
0 ptsNo Marks
The student did not follow directions of naming the submission properly and providing a proper header at the top of the file.
2.5 pts
Total Points: 100
PreviousNext

*Key principles of Object-Oriented Programming (OOP) supported by Java:* Java su

*Key principles of Object-Oriented Programming (OOP) supported by Java:*
Java supports the key principles of OOP, including:
– *Encapsulation:* Bundling data and methods that operate on the data into a single unit (class).
– *Inheritance:* Allowing a class (subclass) to inherit properties and behavior from another class (superclass).
– *Polymorphism:* Providing the ability for objects to be treated as instances of their superclass, allowing for methods to be overridden and objects to be referenced by their superclass type.
– *Abstraction:* Hiding complex implementation details and providing a simplified interface for interacting with objects.
– *Association:* Defining relationships between classes, such as one-to-one, one-to-many, and many-to-many associations.
– *Composition:* Building complex objects by combining simpler objects.
– *Aggregation:* Representing “has-a” relationships between objects, where one object contains another object as a part.
– *Interfaces:* Defining contracts for classes to implement, allowing for multiple inheritance-like behavior.
– *Encapsulation:* Protecting internal data from direct access and manipulation by providing public methods to interact with the data.
Java achieves these principles through its class-based object-oriented model, supporting features like classes, interfaces, inheritance, and polymorphism.

You must provide the solution within1 hour only from the time you accept the req

You must provide the solution within1 hour only from the time you accept the request and do not wait until the time specified on the site
Codes must be written in text and images
If personal information is required, use the attached information
You should avoid plagiarism from any website or artificial intelligence
You must provide the solution within two hours only from the time you accept the request and do not wait until the time specified on the site
Proper referencing in APA format is must
Text size 12-Times New Roman only.
Avoid plagiarisms
Avoid copying from any source
Avoid using another teacher’s solution or a similar previous student’s solution because it is a university whose system can access even the solutions published on the study pool website
You must give 100/100 correct solution
Avoid using paraphrasing programs or websites
You must provide a correct answer 100/100
You must do the solution in the same attached file
You must do the solution in the same attached file
ATTACHMENTS

Overview: This project is to implement two sorting algorithms. The first sorting

Overview:
This project is to implement two sorting algorithms. The first sorting algorithm is an 𝑂(𝑁2)
algorithm: either Selection Sort or Insertion Sort or Bubble Sort. The second algorithm is Quicksort.
Your Quicksort algorithm must use at least two practical improvements that were discussed in
class. With all of this done, you will be asked to gather some data about the running time and plot it.
Requirements:
You must implement the two sorting algorithms above. They should sort the numbers in ascending
order (smallest to largest). When you submit your project, you must have functioning code for both
sorting algorithms, but you can comment out the lines in your main method which actually do the
sorting (so I can uncomment a single line to switch the sorting algorithm). If you’d like, you can ask
the user which sorting algorithm and do it that way.
Youmustalsohaveamethod/functionconfirmSorted(). Thisfunctionshouldtakeyourarrayof
numbers, verify that it is sorted in ascending order, and return a Boolean. If the numbers are
confirmed to be sorted, print out “Confirmed sorted” and if they aren’t sorted, print out “Confirmed
NOT sorted”. Do this before and after the sort.
Data analysis:
In addition to your code, you’ll be asked to try out each sorting algorithm will datasets of different
sizes and record the running time (in milliseconds). With this data, you should create a table and
graph like the one below. In a paragraph or two, please write what you’ve discovered with this data,
explain what is happening with the data and why. You will be provided with datasets of the following sizes: 10, 100, 1000, 5000, 10000, 25000, 50000,
75000, 100000, 250000, 500000, 750000, 1000000, and 10000000. Please include results for all
these datasets in your analysis. Some combinations of algorithm and dataset size won’t be feasible
and may be excluded (the slower algorithm will start to take a VERY long time with large datasets).

You must submit two separate copies (one Word file and one PDF file) using the A

You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the allocated folder. These files must not be in compressed format.
It is your responsibility to check and make sure that you have uploaded both the correct files.
Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between words, hide characters, use different character sets, convert text into image or languages other than English or any kind of manipulation).
Email submission will not be accepted.
You are advised to make your work clear and well-presented. This includes filling your information on the cover page.
You must use this template, failing which will result in zero mark.
You MUST show all your work, and text must not be converted into an image, unless specified otherwise by the question.
Late submission will result in ZERO mark.
The work should be your own, copying from students or other resources will result in ZERO mark.
Use Times New Roman font for all your answers.
2 Marks
Learning Outcome(s): CLO1
Explain the basic principles of programming, concept of language, and universal constructs of programming languages.
Question One
Explain two roles of the java virtual machine as part of java runtime environment?
Describe the intermediate representation of a Java program that allows a JVM to translate a program into machine-level assembly instructions.
2 Marks
Learning Outcome(s): CLO4
Develop a program based on specification using programming language elements including syntax, data types, conditional statement, control structures, procedures, arrays, objects and classes.
Question Two
Create a Java program that does the following:
1.Prompt the user for an input.
2.Enter your first and last names as the input.
3.Read the entered input into two variables (one variable stores the first name while the other stores the last name).
4.Using the printf function, print the variables in upper-case characters and each in a separate line.
(include screenshots of all program execution steps)
2 Marks
Learning Outcome(s): CLO4
Develop a program based on specification using programming language elements including syntax, data types, conditional statement, control structures, procedures, arrays, objects and classes.
Question Three
The cubic polynomial function of the third degree can be represented as:
y = ax3 + bx2 + cx + d
1-Write the correct Java representation of the function without using parentheses using the Rules of Operator Precedence.
2-Evaluate the java representation of the function and find the value of y when,
x=3, a=1, b=2, c=3, d=4
Make sure that you show all the steps in detail.
5.Use parentheses to rewrite the java representation.
2 Marks
Learning Outcome(s): CLO4
Develop a program based on specification using programming language elements including syntax, data types, conditional statement, control structures, procedures, arrays, objects and classes.
Question Four
Write a java program that asks the user to enter his/her name. Print a welcome message and ask the user to enter a number. Then, tell the user the type of the number (positive, negative, or zero).
Note: you must take a screenshot of the output that shows your name in the run.
Sample of the run:

You must submit two separate copies (one Word file and one PDF file) using the

You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the allocated folder. These files must not be in compressed format.
It is your responsibility to check and make sure that you have uploaded both the correct files.
Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between words, hide characters, use different character sets, convert text into image or languages other than English or any kind of manipulation).
Email submission will not be accepted.
You are advised to make your work clear and well-presented. This includes filling your information on the cover page.
You must use this template, failing which will result in zero mark.
You MUST show all your work, and text must not be converted into an image, unless specified otherwise by the question.
Late submission will result in ZERO mark.
The work should be your own, copying from students or other resources will result in ZERO mark.
Use Times New Roman font for all your answers.
Make sure to avoid plagiarism as much as possible.

You must submit two separate copies (one Word file and one PDF file) using the A

You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the allocated folder. These files must not be in compressed format.
It is your responsibility to check and make sure that you have uploaded both the correct files.
Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between words, hide characters, use different character sets, convert text into image or languages other than English or any kind of manipulation).
Email submission will not be accepted.
You are advised to make your work clear and well-presented. This includes filling your information on the cover page.
You must use this template, failing which will result in zero mark.
You MUST show all your work, and text must not be converted into an image, unless specified otherwise by the question.
Late submission will result in ZERO mark.
The work should be your own, copying from students or other resources will result in ZERO mark.
Use Times New Roman font for all your answers.