Find Jobs
Hire Freelancers

coding assignment

$30-250 USD

Completed
Posted over 5 years ago

$30-250 USD

Paid on delivery
// Task 1 public class Term : IComparable { private double Coefficient; private byte Exponent; // Creates a term with the given coefficient and exponent public Term(double coefficient, byte exponent) { Coefficient = coefficient; Exponent = exponent; } // Evaluates the current term for a given x public double Evaluate(double x) { return Coefficient * [login to view URL](x, Exponent); } // Returns -1, 0, or 1 if the exponent of the current term // is less than, equal to, or greater than the exponent of obj. public int CompareTo(Object obj) { Term other = (Term)obj; if (Exponent < [login to view URL]) { return -1; } else if (Exponent == [login to view URL]) { return 0; } else { return 1; } } // Read and write properties for each data member } // Task 2 public class Node<T> { private T item; private Node<T> next; // constructor public Node(T item, Node<T> next) { [login to view URL] = item; [login to view URL] = next; } // Read and write properties or getter/setter for each data member public T getItem() { return item; } public void setItem(T item) { [login to view URL] = item; } public Node<T> getNext() { return next; } public void setNext(Node<T> next) { [login to view URL] = next; } } // Task 3 interface IDegree { bool Order(Object obj); } public class Polynomial : IDegree { // A reference to the first node of a singly-linked list private Node<Term> front; // Inserts the given term t into the current polynomial in its proper order public void AddTerm(Term t) { if (t != null) ; [login to view URL](sum("OLD, polynomial consisting of term t")) } { … } // Adds the given polynomials p and q to yield a new polynomial public static Polynomial operator +(Polynomial p, Polynomial q) { … } // Multiplies the given polynomials p and q to yield a new polynomial public static Polynomial operator *(Polynomial p, Polynomial q) { … } // Evaluates the current polynomial for a given x public double Evaluate(double x) { … } // Prints the current polynomial public void Print() { … } public bool Order(Object obj) { … } }
Project ID: 17961133

About the project

4 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I have vast experience in Java and have done similar work before. If there are any other instructions to be given please provide them.
$30 USD in 2 days
5.0 (1 review)
1.0
1.0
4 freelancers are bidding on average $79 USD for this job
User Avatar
How are you? I am c++ expert. I read your description. I can do it soon. I want to discuss more on chat. Thanks
$155 USD in 3 days
5.0 (1 review)
4.0
4.0
User Avatar
Hi. I have read your description and have interests in your project. I would like to have a discussion with chat to get more about your project. Thanks.
$100 USD in 3 days
5.0 (1 review)
3.0
3.0
User Avatar
Hi there, I do Java programming. I checked your initial code and I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details.
$30 USD in 1 day
5.0 (6 reviews)
3.2
3.2

About the client

Flag of KENYA
nairobi, Kenya
5.0
1
Payment method verified
Member since Oct 15, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.