Find Jobs
Hire Freelancers

coding assignment

$30-250 USD

已完成
已发布超过 5 年前

$30-250 USD

货到付款
// 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) { … } }
项目 ID: 17961133

关于此项目

4提案
远程项目
活跃5 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
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 在2天之内
5.0 (1条评论)
1.0
1.0
4威客以平均价$79 USD来参与此工作竞价
用户头像
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 在3天之内
5.0 (1条评论)
4.0
4.0
用户头像
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 在3天之内
5.0 (1条评论)
3.0
3.0
用户头像
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 在1天之内
5.0 (6条评论)
3.2
3.2

关于客户

KENYA的国旗
nairobi, Kenya
5.0
1
付款方式已验证
会员自10月 15, 2018起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。