Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I really need help with a Java program, please #1

Open
xashen7 opened this issue Mar 2, 2019 · 0 comments
Open

I really need help with a Java program, please #1

xashen7 opened this issue Mar 2, 2019 · 0 comments

Comments

@xashen7
Copy link

xashen7 commented Mar 2, 2019

Hello! I must create the next Java program, maybe you could help me, please: given two lists (you must choose the data lists lines that are considered suitable for the solution of the project: ----Simple Linear Lists, Linear Circular Lists, Double Chained Linear Lists----) polynomial1 and polynomial2, which represent polynomials, elaborate the methods that return in a list sumapoli the sum of the polynomials (polynomial1 + polynomial2) and in a list of multiplication products of the polynomials (polynomial1 * polynomial2). The list is stored in an object of the class "Polynomial" and each element of the list is an object of the class Term; at a general level, a Polynomial will be made up of a finite number of Terms. The polynomials are read through a plain text of the name "Polin.txt", with the following format:

Coefficient-1, exponent-1; Coefficient-2, exponent-2;

The file must contain ONLY two lines, where each one represents polynomial, these can not be, SECURE, that the terms are not repeated. According to the following example:

2x ^ 2 + 3x + 2

It would be represented in the plain text file as:

2.2; 3.1; 2.0

The independent term "2" will have the exponent "0". FOR EFFECTS OF THE PROBLEM, SUPPOSE THAT THE VARIABLE IS ALWAYS "X".

An interface must be created to carry out the project, objects for the operation and tests of this.

(The thing is I got the program to read plain text, but it reads the "comas" as the exponent, and I need it to read each number. I already have the Double Chained Linear Lists too).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant