Find Jobs
Hire Freelancers

ADT POLYNOMIALS in C++

$30-100 USD

已关闭
已发布大约 16 年前

$30-100 USD

货到付款
We define ADT POLYNOMIAL which is a special case of the ADT LIST. Each element in the polynomial has two [login to view URL] and [login to view URL] elements of the ADT POLYNOMIAL are organized in a list in decreasing order of the Exponent [login to view URL] operations which should be defined for the ADT POLYNOMIAL are: * MAKENULL(): Initializes an empty polynomial ( the zero polynomial) * FIRST() returns the position of the first element of a polynomial * END() returns the position of the last element of a polynomial * INSERTEND(s): inserts a new element s at the end of the polynomial * INSERT(S): inserts a new element s in the polynomial and keeps the decreasing order of the polynomial * PRINT(): prints the element of a polynomial in order * EVALUATE(x): returns the value of a polynomial given the value of the parameter is x * ADD (P, Q, S): returns a polynomial S which is the sum of two polynomials P and Q. ie S=P+Q * SUB (P, Q, S): returns a polynomial S which is the result of subtracting polynomial Q from polynomial P. ie S=P-Q * MUL(P, Q, S): returns a polynomial S which is the product of two polynomials P and Q ie S=P*Q * DIV(P,Q,S,R) returns two polynomials : S, which is the quotient of the division of the polynomials P and Q, and R which is the remainder of this division. * POW (P n S) : returns a polynomial S which is the n_th power of the polynomial P,S=P(power n) For each element of an ADT POLYNOMIAL we define the following operations: * EXP() returns the exponent of the element * COEF() returns the coefficient of the element * NEXT() returns the element next to the current one in the polynomial The above ADT and procedures will be implemented using link list representation in C++.Each element will be presented as a record of three fields, namely, Exp,Coef,and Link,where Link is a pointer To test the program, use the following polynomials: A= 2x(cube)??"1, B= 2x(power 4)??"5x(square)+3, C = 2x(power 10)??"6x(square) Compute the following [login to view URL] each one(and the input polynomials)print the polynomials using a nice format and its value for x=2 Polynomials to be computed are: D= A+B, E = A-B, F = D*E, G = A(Square), H = B(square) I = G-H, J = F-I, K = B(cube) , L = K/C, M = K+A N= M/B
项目 ID: 3788477

关于此项目

21提案
远程项目
活跃16 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
21威客以平均价$56 USD来参与此工作竞价
用户头像
See private message.
$85 USD 在3天之内
5.0 (284条评论)
7.6
7.6
用户头像
See private message.
$42.50 USD 在3天之内
4.9 (330条评论)
7.1
7.1
用户头像
See private message.
$85 USD 在3天之内
5.0 (42条评论)
5.6
5.6
用户头像
See private message.
$41.65 USD 在3天之内
5.0 (46条评论)
5.0
5.0
用户头像
See private message.
$85 USD 在3天之内
4.5 (36条评论)
4.4
4.4
用户头像
See private message.
$85 USD 在3天之内
4.9 (10条评论)
4.0
4.0
用户头像
See private message.
$76.50 USD 在3天之内
5.0 (21条评论)
3.9
3.9
用户头像
See private message.
$63.75 USD 在3天之内
5.0 (14条评论)
3.8
3.8
用户头像
See private message.
$34 USD 在3天之内
4.8 (22条评论)
3.7
3.7
用户头像
See private message.
$72.25 USD 在3天之内
5.0 (25条评论)
3.6
3.6
用户头像
See private message.
$17 USD 在3天之内
4.8 (7条评论)
2.1
2.1
用户头像
See private message.
$11.90 USD 在3天之内
4.4 (4条评论)
1.3
1.3
用户头像
See private message.
$63.75 USD 在3天之内
0.0 (0条评论)
0.0
0.0
用户头像
See private message.
$50.15 USD 在3天之内
0.0 (2条评论)
1.9
1.9
用户头像
See private message.
$63.75 USD 在3天之内
0.0 (0条评论)
0.0
0.0
用户头像
See private message.
$68 USD 在3天之内
0.0 (0条评论)
0.0
0.0
用户头像
See private message.
$63.75 USD 在3天之内
0.0 (0条评论)
0.0
0.0
用户头像
See private message.
$38.25 USD 在3天之内
0.0 (0条评论)
0.0
0.0
用户头像
See private message.
$47.60 USD 在3天之内
0.0 (0条评论)
0.0
0.0
用户头像
See private message.
$25.50 USD 在3天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
United States
0.0
0
会员自3月 11, 2008起

客户认证

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