473,326 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

urgent .. plz

5
^_^ Hiiiiiiiiii all

i'm a new member here ... hope to help me in me task !!

i 've a challenge with my friend . in how solving this problem

we may be new students with oop .. but we r working hard as possible as we can ^_^

any way ,, this is the problem ,, have alook at it and try to help me in sloving it ,, ok :)

i have to creat a class in a name of ploynomial with the following steps ..

Class Polynomials should contain the following member functions:
1.A default constructor, that creates an empty polynomial object.
2.A parameterized constructor, that accepts as input an array of terms and the size that indicates the number of the terms. Each term consists of a coefficient and an exponent.
3.A destructor that free all the space that has been allocated dynamically for the object.
4.getDegree() that returns the degree of the polynomial. The degree of a polynomial is defined as the largest power in the list of terms. (ex: p(x)= 1+2x +15x2 +3 x6 has a degree of 6)
5.getCoefficient(d) that returns the coefficient of the term with degree d.
6.getValue(x) that returns the value of the polynomial at x
For example value of p(x)= 1+2x +15x2 +3 x6 at x=1 is p(1)=21.
7.print() that displays on the screen the polynomial according to the following format.
P(x)= 1 + 2x + 15X2 + 3 x6 should be displayed as 1 + 2 X + 15 X**2 + 3 X**6.
8.Operator + that that returns a new polynomial that contains self + argument.
9.Operator – that returns a new polynomial that contains self - argument.
10.Operator = that assigns a polynomial to self.


waiting u today or tommorow .. plz

if u want to contact me this is my mail ..
broken.soul294@hotmail.com

regards
Nov 22 '06 #1
6 1229
Hope
5
!!!!!!!!!! waiting u plz
Nov 22 '06 #2
AricC
1,892 Expert 1GB
Do you have anything written for this? You'll find people are more likely to help if you have written some of the code yourself, then ask for some guidance.
Nov 22 '06 #3
nickyeng
254 100+
Hi Hope,

your trick with saying you "challenge" your friends in solving the task(so-called questionS)...

we knew the trick okay.

:D

so, why not you do your some own code, and then post it to let members here give you some comment or advice.

People here are quite nice to help you, but not without you having try the code.
Nov 22 '06 #4
jacoder
13
Hi Hope,

your trick with saying you "challenge" your friends in solving the task(so-called questionS)...

we knew the trick okay.

:D

so, why not you do your some own code, and then post it to let members here give you some comment or advice.

People here are quite nice to help you, but not without you having try the code.
yeah thats gotta be one of the lam3st things ive heard ("what a challenge") lol :P
Nov 23 '06 #5
jacoder
13
Hi Hope,

your trick with saying you "challenge" your friends in solving the task(so-called questionS)...

we knew the trick okay.

:D

so, why not you do your some own code, and then post it to let members here give you some comment or advice.

People here are quite nice to help you, but not without you having try the code.
thats lame *you havnt even posted a single line of code* & im no where nr good coder yet but i try (make sumthing code sumthing you might actually like it)
Nov 23 '06 #6
Hope
5
Really !!

oh thanks .. ur so kind ..

any way i'm already have my own code but with some errors
and i will c my friend today to see what did she do with the same task ..

thanks all
Nov 24 '06 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Rob | last post by:
I have a form - when you click the submit button, it appends a variable to the URL (e.g. xyz.cgi?inputID=some_dynamic_variable) It also opens a new page. Now, that some_dynamic_variable is...
9
by: Stefan Bauer | last post by:
Hi NG, we've got a very urgent problem... :( We are importing data with the LOAD utility. The input DATE field data is in the format DDMMYYYY (for days) and MMYYYY (for months). The target...
8
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is...
28
by: Tamir Khason | last post by:
Follwing the struct: public struct TpSomeMsgRep { public uint SomeId;
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
7
by: zeyais | last post by:
Here is my HTML: <style> ..leftcolumn{float:left;width:300px;border: 1px solid #ccc} ..rtcolumn{float:left;width:600px;border: 1px solid #ccc} </style> <body> <div class="leftcolumn"...
33
by: dembla | last post by:
Hey Frnds can anyone help me in this i need a program in 'c' PROGRAM to print NxN Matrix 9 1 8 1 2 3 2 7 3 as 4 5 6 6 4 5 7 8 9 in sorted form
8
by: ginnisharma1 | last post by:
Hi All, I am very new to C language and I got really big assignment in my work.I am wondering if anyone can help me.........I need to port compiler from unix to windows and compiler is written...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
7
by: Cirene | last post by:
I used to use the Web Deployment Project with my VS2005 projects. Now I've fully upgraded to VS2008. Do I have to download a new version of the Web Deployment Project? If so where can I find...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.