I’m tasked to do this small program using the JOptionPane class to get the user

I’m tasked to do this small program using the JOptionPane class to get the user

I’m tasked to do this small program using the JOptionPane class to get the user input of how many calories they ate of cookies per bag. I will upload the homework assignment in Microsoft Word document that will explain similar to what I have said.

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

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 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 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.

An Idea of Gold

An Idea of Gold

1.8 Discussion: An Idea of Gold
*You will not be able to read other students’ comments without first posting your own!
As you read through the first week’s selections of poems (1.5 An Idea of Gold: What Is Poetry?; 1.6 Time Confounds and Wounds;and 1.7 The Devil’s Box: Classical Forms), select one poem to re-read closely and make a comment in the Discussion.
1. Take part in this discussion by stating the title and author of the poem you’ve chosen. Make one meaningful citation and explain/interpret it. (6-10 sentences)
State the author’s full name and the title of the poem.
Make a citation and interpret it. What do the quoted lines mean, and how do you think they reflect one theme or idea in the poem? Explain!
Why have you chosen this poem?
2. Then respond to at least two other student posts by making a meaningful and engaged response (6-10 sentences each)
Re-read the poem that each student makes a comment about.
Respond in a meaningful way to engage their ideas about that poem. Earn the points!

Explain two roles of the java virtual machine as part of java runtime environment?

Explain two roles of the java virtual machine as part of java runtime environment?

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:

Student Details: Name: ### CRN: ### ID: ### Pg. 01 Question Four<> “Error*” “Que

Student Details:
Name: ###
CRN: ###
ID: ###
Pg. 01
Question Four<> “Error*” “Que

Student Details:
Name: ###
CRN: ###
ID: ###
Pg. 01
Question Four<> “Error*” “Question FourQuestion Four
2 Marks
Learning Outcome(s): CLO1
Explain the basic principles of programming, concept of language, and universal constructs of programming languages.
Question OneExplain 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 TwoCreate a Java program that does

Instructions: • You must submit two separate copies (one Word file and one PDF

Instructions:
• You must submit two separate copies (one Word file and one PDF

Instructions:
• 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, usedifferent 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.
Student Details:
Name: ###
CRN: ###
ID: ###
Pg. 01
Question Four<> “Error*” “Question FourQuestion Four
2 Marks
Learning Outcome(s): CLO1
Explain the basic principles of programming, concept of language, and universal constructs of programming languages.
Question OneExplain 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 TwoCreate 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

“I offer comprehensive teaching services tailored to Java programming, catering

“I offer comprehensive teaching services tailored to Java programming, catering

“I offer comprehensive teaching services tailored to Java programming, catering to beginners and advanced learners alike. With structured lessons, hands-on exercises, and personalized guidance, I ensure students grasp Java fundamentals, object-oriented concepts, and advanced topics. Whether aiming for proficiency, project readiness, or exam preparation, my interactive teaching approach fosters a deep understanding of Java programming principles.