Does somebody know how to this. This is what I got so far
import java.io.*;
import java.util.Scanner;


public class Lab33bst
{

public static void main (String args[]) throws IOException
{



Scanner input = new Scanner(System.in);

System.out.print("Enter the degree of the polynomial --> ");
int degree = input.nextInt();
System.out.println();

PolyNode p = null;
PolyNode temp = null;
PolyNode front = null;

System.out.print("Enter the coefficent x^" + degree + " if no term exist, enter 0 --> ");
int coefficent = input.nextInt();
front = new PolyNode(coefficent,degree,null);
temp = front;
int tempDegree = degree;
//System.out.println(front.getCoeff() + " " + front.getDegree());
for (int k = 1; k <= degree; k++)
{
tempDegree--;
System.out.print("Enter the coefficent x^" + tempDegree + " if no term exist, enter 0 --> ");
coefficent = input.nextInt();
p = new PolyNode(coefficent,tempDegree,null);
temp.setNext(p);
temp = p;
}
System.out.println();

p = front;
while (p != null)
{

System.out.println(p.getCoeff() + "^" + p.getDegree() + "+" );
p = p.getNext();


}
System.out.println();
}


}

class PolyNode
{

private int coeff; // coefficient of each term
private int degree; // degree of each term
private PolyNode next; // link to the next term node

public PolyNode (int c, int d, PolyNode initNext)
{
coeff = c;
degree = d;
next = initNext;
}

public int getCoeff()
{
return coeff;
}

public int getDegree()
{
return degree;
}

public PolyNode getNext()
{
return next;
}

public void setCoeff (int newCoeff)
{
coeff = newCoeff;
}

public void setDegree (int newDegree)
{
degree = newDegree;
}

public void setNext (PolyNode newNext)
{
next = newNext;
}

}



This is the instructions for the lab. Somebody please help. I need to complete this or I'm going fail the class please help me.
Write a program that will evaluate polynomial functions of the following type:

Y = a1Xn + a2Xn-1 + a3Xn-2 + . . . an-1X2 + anX1 + a0X0 where X, the coefficients ai, and n are to be given.

This program has to be written, such that each term of the polynomial is stored in a linked list node.
You are expected to create nodes for each polynomial term and store the term information. These nodes need to be linked to each previously created node. The result is that the linked list will access in a LIFO sequence. When you display the polynomial, it will be displayed in reverse order from the keyboard entry sequence.

Make the display follow mathematical conventions and do not display terms with zero coefficients, nor powers of 1 or 0. For example the polynomial Y = 1X^0 + 0X^1 + 0X^2 + 1X^3 is not concerned with normal mathematical appearance, don’t display it like that. It is shown again as it should appear. Y = 1 + X^3

Normal polynomials should work with real number coefficients. For the sake of this program, assume that you are strictly dealing with integers and that the result of the polynomial is an integer as well. You will be provided with a special PolyNode class. The PolyNode class is very similar to the ListNode class that you learned about in chapter 33 and in class. The ListNode class is more general and works with object data members. Such a class is very practical for many different situations. For this assignment, early in your linked list learning, a class has been created strictly for working with a linked list that will store the coefficient and the degree of each term in the polynomial.

class PolyNode
{
private int coeff; // coefficient of each term
private int degree; // degree of each term
private PolyNode next; // link to the next term node

public PolyNode (int c, int d, PolyNode initNext)
{
coeff = c;
degree = d;
next = initNext;
}

public int getCoeff()
{
return coeff;
}

public int getDegree()
{
return degree;
}

public PolyNode getNext()
{
return next;
}

public void setCoeff (int newCoeff)
{
coeff = newCoeff;
}

public void setDegree (int newDegree)
{
degree = newDegree;
}

public void setNext (PolyNode newNext)
{
next = newNext;
}
}

You are expected to add various methods that are not provided in the student version. The sample execution will indicate which methods you need to write. Everything could be finished in the main method of the program, but hopefully you realize by now that such an approach is rather poor program design.

Answers

Answer 1

I have a solution for you but Brainly doesn't let me paste code in here.


Related Questions

35 points!!!!! Brainliest to best answer!
Please don't just answer for the points!!!!!!!!!!!!
Kim's father's company has expanded many times. Therefore, the company's volume of data has also increased. The employees of that company have problems with accessing large volumes of data. Which computer network should she choose so that the employees can access the huge amount of data easily?

A. VPN

B. LAN

C. WLAN

D. PAN

E. SAN

Answers

Answer:

the answer is E. SAN

Explanation:

Answer:

VPN

Explanation:

write a python program to convert a number entered by the user
the input is 985
the output is Nine Eight Five

Answers

Answer:

# Function to convert decimal number

# to binary using recursion

def DecimalToBinary(num):

if num >= 1:

DecimalToBinary(num // 2)

print(num % 2, end = '')

# Driver Code

if __name__ == '__main__':

# decimal value

dec_val = 24

# Calling function

DecimalToBinary(dec_val)

Explanation:

Retype the paragraph with the corrections. There are 12 corrections. Look closely at the word and letter highlighted in yellow to determine how to correct them. Please help Thank you

Answers

Answer:

Touch typing is a useful skill. It allows you to increase your typing speed and at the same time and reduces the number of errors you make. Touch typing makes you type faster and more efficient. You can be productive and complete your school assignments much quicker. Touch typing also allows you to type communication documents, like e-mails, in a fast and efficient manner. Most importantly, if you type properly then it will reduce repetitive injuries like carpal tunnel syndrome. There are many benefits of learning how to type correctly.

Explanation:

B. Write your thoughts about the following in your notebook.
1. How will you safely use the computer when you are online?
2. How can one use the computer or mobile devices for business?
3. What would you do if you encounter unsafe and questionable content
or messages?​

Answers

1. stay with adult supervision

2. check on the web and create a site for it

3. quickly remove it and try not to read it

Explanation:

I really hope this helps

please mark as brainliest

Which part of the email address signifies the domain name?

A. (Patrick)
B. (at sign)
C. (company_abc_.com)
D. (.com)

Answers

The part of the email address signifies the domain name is (company_abc_.com). Hence option C is correct.

What is email?

Email is defined as the internet-based transmission of computer-stored messages from one user to one or more receivers. People can exchange emails fast thanks to a global email network. The electronic equivalent of a letter is e-mail, which offers benefits in flexibility and immediacy. Email is a crucial medium for business communication since it is accessible, quick, inexpensive, and easy to replicate.

The email domain is the part of an email address that comes after the sign. The portion that comes before the x sign indicates the name of a mailbox and is frequently the recipient's username. The domain name is the text that follows the sign.

Thus, the part of the email address signifies the domain name is (company_abc_.com). Hence option C is correct.

To learn more about email, refer to the link below:

https://brainly.com/question/14666241

#SPJ2

Name at least 3 different portable computer devices that can be purchased
either from a local retailer or online.

Answers

Answer:

Smart Phone

Cameras

Console Controller

Brainliest and please say if its right!!

Phones

Laptops/Computers

Consoles

(Also tablets).

why is video game addiction a real problem?​

Answers

Video game addiction is a real problem because it starts interfering with school and other activies such as spending time with family, or being active. It slowly starts taking away your motivation to do anything else and all you want to do is play the game

Well, truthfully there is no such thing as video game addiction.

You see, playing video games is fun, and sure, sometimes some kids (or adults sometimes too) like to play for a lot longer than others would like them to, however, video gaming is a very good thing in many cases. You see, for example, there are gamers who have made a very large impact on the definition of success. Like Jaden Ashman (he was born in the UK) who won the Fortnite World Cup, and signed a contract with the Fortnite team Lazarus. This made Jaden earn over $60,000 a year. Parents and other people may believe that kids can be addicted to video games, but there have always been the people who prove them wrong. We as people get our own assumptions of what is or isn't addicting, video games among them, but we (the younger generation of gamers) know more insight than those others. People just need to re-define the definition of addiction.

Hope this helps and have a nice day.

-R3TR0 Z3R0

HELPPPPP PLEEEAAASSSSEEEEE I'VE BEEN STUCK FOR HALF AN HOUR ALREADY PLEASE HELPPP!!!!!!!!Bella is creating a research paper for the first time in Microsoft Word. She is taking a lot of time to create and format the bibliography section. Which section in Microsoft Word can she use to expedite the process? Bella can use the section called_/_/_/_/_/_/_/ in Microsoft Word to create the bibliography.

Answers

Answer:

Citations & Bibliography section.

Explanation:

Microsoft Word refers to a word processing software application or program developed by Microsoft Inc. to enable its users to type, format and save text-based documents.

In Microsoft Word 2019, the users are availed with the ability to edit the word document in the following view type;

I. View Mode.

II. Print Mode.

III. Drift Layout.

In this scenario, Bella is creating a research paper for the first time in Microsoft Word. She is taking a lot of time to create and format the bibliography section.

Hence, Bella can use the section called Citations & Bibliography in Microsoft Word to create the bibliography. It is found in the References tab of the Microsoft Word program.

Citations are references or links to all of the sources from which an author, writer, or researcher got his or her information from while bibliography is a list of all the sources used in a literary work such as a research paper.

Don’t do number 3 just 1 and 2

Answers

Answer:

for #1 its the 3rd one and #2 its the 4th

Explanation:

:)

1. B
2. A

Hope this helps:)

as we move up a energy pyrimad the amount of a energy avaliable to each level of consumers

Answers

Explanation:

As it progresses high around an atmosphere, the amount of power through each tropic stage reduces. Little enough as 10% including its power is passed towards the next layer at every primary producers; the remainder is essentially wasted as heat by physiological activities.

Time shifting occurs when

a. Clocks move ahead one hour in the spring

b. Works are copied and kept for future generations

C. Individuals copy works to view at a later time

d. Copyrighted materials comes into the public domain

Please select the best answer from the choices provided

A
B
C
D

Answers

Answer: C

Time shifting is when you move from one period in time to another.

Time shifting occurs when Individuals copy works to view at a later time.

What is Time shifting?

Time shifting is known to be a term that connote a move or a shift of a signal in the aspect of time. This can be done by the use of addition or subtraction.

Conclusively, Time shifting do take place when people copy works to view at a later time as they are moving the work to future time.

Learn more about Time shifting from

https://brainly.com/question/14124969

look at (d), is it accurate? ​

Answers

Answer:

ya

Explanation:

Answer:

yes it is

Explanation:

C) The Cloud makes use of the client-server model.
(i) Explain the roles of the client and server in this relationship.

Answers

Please answer answer question answer

Answer:

But generally the shurikens are considered the best bang for you buck. Followed by the flame vent (if you want to hit apparitions with living weapon) or the Axe for general purpose. The dagger is considered the worst and in many cases actually manages to be WORSE than the piercing variant.

Explanation:

Use the table on the right to convert from decimal to binary.

The decimal value of binary 1000 is 10.
The decimal value of binary 1100 is 12.

The decimal value of binary 1001 is 11.

The decimal value of binary 1110 is E.

Answers

Answer:

The decimal value of binary 1100 is 12

Explanation:

on edge

If the algorithm does not have instructions for unanticipated results, the computer program will

Answers

ANSWER: The computer program will ✔ halt . A(n) ✔ recipe is an algorithm.

BRAINLIEST please and good luck!

Use the drop-down menu to correctly identify the numbering system.

This numbering system uses 8 symbols:
This numbering system uses 0 and 1:
This numbering system uses 16 symbols:
This numbering system uses 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9:
This numbering system uses 2 symbols:
This numbering system uses 10 symbols:
This numbering system uses numbers and letters:
This numbering system uses 0, 1, 2, 3, 5, 6, and 7:

Answers

This numbering system uses 8 symbols: octal number

This numbering system uses 0 and 1: binary number

This numbering system uses 16 symbols: hexadecimal

This numbering system uses 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9: decimal number system

This numbering system uses 2 symbols: binary number system

This numbering system uses 10 symbols:   decimal number system

This numbering system uses numbers and letters:   hexadecimal number system

This numbering system uses 0, 1, 2, 3, 5, 6, and 7:   octal number system

This numbering system uses 8 symbols is octal number and that of  0 and 1 is binary number.

What is numbering system?

Other are:

The numbering system that uses 16 symbols: hexadecimal.The numbering system that uses 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9: decimal.The numbering system that uses 2 symbols: binary.The numbering system that  uses 10 symbols:   decimal.The numbering system that uses numbers and letters:   hexadecimal.This numbering system uses 0, 1, 2, 3, 5, 6, and 7:   octal.

The numbering system  is known to be often used in  computer.

Conclusively,  it is known to be a kind of systematic process for depicting or showing numbers through the use of a specific set of symbols such as the ones given above.

Learn more about  numbering system from

https://brainly.com/question/17200227

#SPJ2

These are the records and traces an individual leaves behind as they use the internet
1 point

Digital Path

Digital map

Digital foot

Digital footprints

Answers

Answer:

Option D. Digital footprints

Explanation:

Digital footprint is all the stuff you leave behind as you use the Internet.

Digital footprints fs it’s the best

1. What is the measure of muscle strength?

A. Number of repetitions in a set

B. Length of muscle stretch

C. Force against resistance

D. Time taken to complete a workout

Answers

Answer:

C. The force against resistance

Can anyone help me this is due today :)
Thank you so much

Answers

Tablet Pros

Better for extended work sessions: Tablets are designed to work for longer hours, which makes them better for extended work sessions than smartphones. When it comes to editing photos and videos of the project, it is a superior tool because the visibility is much better. Many tablets have a longer battery life than most smartphones.

Reading and writing: Tablets are easier to read and interact with content. This is especially when it comes to viewing documents, drafts, and drawings. It is also easier to use interactive websites and read large pieces of information on a tablet. Reading and writing content is more comfortable.

Video calling: Tablets are easier for video conferencing. Propping your tablet on the table allows you to conference with clients with a professional feel, than holding your smartphone in front of your face.

Phone Pros

Handy: A smartphone is designed to be used in the hand and fit comfortably in your pocket or purse. It’s low weight, high durability, small size, long battery life, and with the ability to use voice commands and one-handed usability, it is the ideal device for on the go.

Better communication device: If you need to talk on your phone a lot, or if you’re going to be sending a lot of texts and instant messages, then a smartphone is a better tool. Because it is always with you, it is more ideal for communicating effectively.

Camera: If you will need to take a lot of photos of your job sites, the camera is easier to point and shoot with a smartphone. Generally, the cameras on smartphones tend to capture higher quality images than tablets, while also being a lot easier to carry around.

Pros for Both

Easy to use tech compared to computer's

Question 1.

N/A Sorry

Question 2.

N/A Sorry

Answer:

I commented so you could get brainliest.

Explanation:

You deserve it.

I figured out the secret message in Dad feels good, I can connect the dots

It was morse code of blinking lights. Here is my translation

Andan
come in
this is base

Luietanat Emily Ridley
this is base
come in

This makes sense.

Dad's base wasn't on CFBDSIR, it was on 22B

Dad said not to forget 22B, Kepler 22B is the base. I think Kepler 22B is the base that some lifeform took over

Can you guys correct me if I am wrong

Answers

Answer:

Nope you figured it out

Explanation:

20 POINTS!!!!!!!! ANSWER THE QUESTION DOWN BELOW. IF YOU ANSWER SOMETHING INCOMPLETE OR WRONG, I WILL TAKE IT DOWN. GIVING BRAINLIEST TO WHOEVER DOES IT RIGHT. PLEASE HELP THANKS!!!!!

Answers

Answer:

The missing tags have been added below.

Explanation:

HTML is an acronym for hypertext markup language and it is a standard programming language which is used for designing, developing and creating web pages.

Generally, all HTML documents are divided into two (2) main parts; body and head. The head contains information such as version of HTML, title of a page, metadata, link to custom favicons and CSS etc. The body of the HTML document contains the contents or informations of a web page to be displayed.

The complete code for the web page is written below;

<! DOCTYPE html>

<head>

< title > My Favorite Fruits </ title >

</head>

<body>

<h1> My Favorite Fruits </h1>

<p1> I really love fruit. My absolute favorites are in the list below. </p1>

<ol>

<li> Bananas </li>

<li> Strawberries </li>

<li> Watermelon </li>

</ol>

</body>

</html >

Note: The code isn't indented because i'm not using an appropriate code editor.

You should ensure your html document contains a header and a body while using the appropriate tags.

The <head> is the opening tag for the header and it should be closed with the </head> while the <title> </title > tag indicates the title of the page at the top of a web browser.

The body of the document starts with the <body> and </body>.

Also, the <h> and </h> tag is used to hold the text in the body while the <p> and </p> tag is used for paragraphs.

Lastly, since we are creating a document with an ordered list, we would use the <ol> and </ol> patent tag while the child tag <li> and </li> sorts the list numerically.

Evaluate if the following function is a good candidate to be placed in a library. Why or why not?

Answers

Answer:

It cannot be a good candidate because the creator of the library is attempting to update the global variables player1Points and player2Points. The updated scores for each player won't be retained unless someone creates the global variables player1Points and player2Points in their program.

The updateScore function is meant to update the point of player1 and player2 ; since the variables player1 and player2 are only defined in the function, then they do not have a global scope. Hence, the function isn't right to be placed in a library.

Variables defined outside a function are called global variables ; hence, they can be referenced anywhere within the program.

Since the function references a global variable, then any program which intends to use the function must have the variables player1 and player2 must be defined globally in the program.

Hence, it is not a good candidate to be placed in a library.

Learn more:https://brainly.com/question/20720413

The unique identifier for each record in a database table is called the

A. Record Id
B. Id number
C. Primary key
D. Row number

Answers

The answer is C. Primary Key. I hope this helps

Answer:

C

Explanation:

Thank the other person

The main difference between \f and \r is that \f produces a

Answers

Answer:

\f is a formfeed, \r is just a carriage return.

What are the limitations of the ASCII character set? State why it is limited in this way?

Answers

The problem with ASCII or extended ASCII is that the ASCII system can only represent up to 128 (or 256 for EASCII) different characters. The limitation on the number of character sets means representing character sets for several different language structures is not possible.

can you adopt me in the orphanage u saw Tammy after school?

Answers

Answer:

sure I'm on my way

see you soon

who's tammy

If a Magnet is Positive what will happen?
A. Metal will be Attracted
B. Metal will not be Attracted

Answers

Answer:

Your answer is A :)

Explanation:

You see, if a magnet is positive it means it will attract metal.

Hope this helps!

Have a good day, Pots ❤

Answer:

a

Explanation:

Which function is correctly written?
=Average(C4)
=Average(C2:010)
=Average(D5-D20)

Answers

Answer:

=Average(C2:010)

Explanation:

You us the ; between the numbers, and u need two numbers for average. Sorry if wrong.

Answer:

2:010

Explanation:

Explain why RAM is used to store running programs rather than the hard disk

Answers

Answer:

it would take up too much space and it would put too much stress on the processer.

Explanation:


Where do medical students spend most of their first 2 years of medical
school? *

Answers

The first two years
Much of your time will be spent in the classroom and the lab, and the courses you'll take will give you all the fundamentals you need to start learning the art of medicine and patient care.
Other Questions
PLSSS HELP ME THIS IS SPANISH The peripheral nervous system consists of How do the first two lines of "The New Colossus" contribute to the poem's meaning?They establish a comparison between two related ideas.They introduce an idea that the rest of the poem contrasts.They establish an idea that is explored throughout the rest of the poem.They introduce a topic unrelated to the topic described in the rest of the poem. what happens during the new moon phase when the moon passes directly between the sun and earth? Is a coin flip random? Why or why not, in your opinion?Choose the correct answer below.A.Yes. You will get heads on every other flip.B.Yes. You cannot predict the outcome beforehand.C.No. You must run numerous trials before you can tell.D.No. You can predict the outcome beforehand. An ordinary (fair) die is a cube with the numbers 1 through 6 on the sides (represented by painted spots). Imagine that such a die is rolled twice in successionand that the face values of the two rolls are added together. This sum is recorded as the outcome of a single trial of a random experiment.Compute the probability of each of the following events.Event A: The sum is greater than 6.Event B: The sum is an even number.Round your answers to two decimal places.I need the answers fast . Hey I am doing school and need someone to talk to Y-intercept:8x +9y=40 Please help me with this math I do not understand Find (2)(8). please. Calcium binds to which skeletal muscle cell protein? Climax of banner in the sky How do you predict England will react to the Great Awakening in the 13 colonies Why? 3x + 4y = 12 solve for y A bakery had 679 bags of sugar. A baker used 463 of these bags to make pies. How many bags does the bakery still have? The length of February was finalized in 713 BC, when this man remade the Roman calendar and assigned the month 28 days and 29 days. Who was the Roman ruler at this time?George WashingtonAntonio Lopez de Santa AnnaJulius CeasarSam Houston 8 divided by p pls in aaaaaaaaaaa please help!!!!!!!!!!! PLEASE HELP, I am having a hard time with this. Find the angle of measure 1 (photo is attached) Usando un cronometro, calcule el tiempo empleado para recorrer una distancia de aproximadamente 50 metros. Con los datos obtenidos determine el valor aproximado de su velocidad promedio con 2 cifras decimales