473,513 Members | 2,559 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help needed with some c++ programs... urgent

Hi friends,
My sister is in great problem , she has this exam of C++ and
she is stuck up with some questions, if friends like this group
provides some help to her, she will be very grateful.
These are some questions:-
7. design and implement a class binsearch for a binary search tree.it
includes search,remove and add options.make suitable assumption.

8.explai how pointers to functions can be declared in c++.under what
conditions can two pointer variables be added,subtracted and compared?

9.design and develop a polymorphic class to solve a general quadratic
equation ax2+bx+c=0

If u can provide the full answer it will be great , but if u
can't, send the answer in brief , so, that it is understandable.
Thank you very much VibhaJha.
Jul 22 '05 #1
12 2295

"Vibhajha" <vi*********@yahoo.com> wrote in message
news:8d***********************@posting.google.com. ..
Hi friends,
My sister is in great problem , she has this exam of C++ and
she is stuck up with some questions, if friends like this group
provides some help to her, she will be very grateful.
These are some questions:-
7. design and implement a class binsearch for a binary search tree.it
includes search,remove and add options.make suitable assumption.

8.explai how pointers to functions can be declared in c++.under what
conditions can two pointer variables be added,subtracted and compared?

9.design and develop a polymorphic class to solve a general quadratic
equation ax2+bx+c=0


Your sister should post the attempts that she has made to answer these
questions. People will gladly help her if she can show she has made some
effort herself. What people will not do is post complete answers to her,
your sister will learn very little that way.

And of course it will help if your sister posts herself instead of through
you.

john
Jul 22 '05 #2
Hi,
ya she can post this question with herself , if she has this
internet!!!, she lives in such a place where she lacks internet
facility, and good teachers , so about some questions she doesn't know
what the question means.... and i don't know C++ , so, i can't try and
send u trial answers , she has this test in coming next weekend.. she
has already sent me questions through Post. Its urgent people please
try and understand , its the question of her career, i am sure next
time , she will definitely, not write just questions , but send the
trial answers too, please friends, this time please help her. Next
time i will not give you any chance to complain.
Thanks for reading me.....
VibhaJha.
Jul 22 '05 #3
Vibhajha posted:
Hi friends,
My sister is in great problem , she has this exam of C++ and
she is stuck up with some questions, if friends like this group
provides some help to her, she will be very grateful.
These are some questions:-
7. design and implement a class binsearch for a binary search tree.it
includes search,remove and add options.make suitable assumption.

8.explai how pointers to functions can be declared in c++.under what
conditions can two pointer variables be added,subtracted and compared?

9.design and develop a polymorphic class to solve a general quadratic
equation ax2+bx+c=0

If u can provide the full answer it will be great , but if u
can't, send the answer in brief , so, that it is understandable.
Thank you very much VibhaJha.

Fuck Off.
-JKop
Jul 22 '05 #4
Vibhajha wrote:

Hi,
ya she can post this question with herself , if she has this
internet!!!, she lives in such a place where she lacks internet
facility, and good teachers , so about some questions she doesn't know
what the question means.... and i don't know C++ , so, i can't try and
send u trial answers , she has this test in coming next weekend.. she
has already sent me questions through Post. Its urgent people please
try and understand , its the question of her career
What does that mean?
What career?
Professional? If she can't answer that questions she is not (yet) ready
for industrial professional programming.
, i am sure next
time , she will definitely, not write just questions , but send the
trial answers too, please friends, this time please help her. Next
time i will not give you any chance to complain.
So what exactly does she need?
7. design and implement a class binsearch for a binary search tree.it
includes search,remove and add options.make suitable assumption.
Hmm. A binary search tree. Every lousy book about data structure has one
chapter about binary search trees. Let me see:
www.google.com
Search phrase: "binary search tree C++"
returns around 132000 hits.
8.explai how pointers to functions can be declared in c++.under what
conditions can two pointer variables be added,subtracted and compared?
Seriously. The first part of this question should be easy to answer
with her text book. Function pointer syntax isn't used very often in C++,
but nevertheless, if you got it once it is easy to remember.
Also see the FAQ for some common pitfalls:
http://www.parashift.com/c++-faq-lit...o-members.html

The second part of the question is really very basic. If she can't answer
that on her own, ....
9.design and develop a polymorphic class to solve a general quadratic
equation ax2+bx+c=0


I really don't know what to answer here. Seems like straightforward
class to solve a quadratic equation. The only thing that's puzzling me
is: Why is there the request for polymorphism in the question? Anybody?
(Hmm. There are 2 well known mathematical ways to solve a quadratic
equation. Could it be that this should be used as base for polymorphism?)

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 22 '05 #5
> > 9.design and develop a polymorphic class to solve a general quadratic
equation ax2+bx+c=0


I really don't know what to answer here. Seems like straightforward
class to solve a quadratic equation. The only thing that's puzzling me
is: Why is there the request for polymorphism in the question? Anybody?
(Hmm. There are 2 well known mathematical ways to solve a quadratic
equation. Could it be that this should be used as base for polymorphism?)


I reckon the polymorphism is for different kinds of number class. E.g. real
numbers or complex numbers.

john
Jul 22 '05 #6
In message <41***************@gascad.at>, Karl Heinz Buchegger
<kb******@gascad.at> writes
Vibhajha wrote:

Hi,
ya she can post this question with herself , if she has this
internet!!!, she lives in such a place where she lacks internet
facility, and good teachers , so about some questions she doesn't know
what the question means.... and i don't know C++ , so, i can't try and
send u trial answers , she has this test in coming next weekend.. she
has already sent me questions through Post. Its urgent people please
try and understand , its the question of her career
What does that mean?
What career?
Professional? If she can't answer that questions she is not (yet) ready
for industrial professional programming.


Of course "she" is; she'll just get her "friend" to post all her
professional problems here for clc++ to solve :-(

[...]
9.design and develop a polymorphic class to solve a general quadratic
equation ax2+bx+c=0
I really don't know what to answer here. Seems like straightforward
class to solve a quadratic equation.


Nothing in numerics is "straightforward" ;-)
The only thing that's puzzling me
is: Why is there the request for polymorphism in the question? Anybody?
(Hmm. There are 2 well known mathematical ways to solve a quadratic
equation. Could it be that this should be used as base for polymorphism?)

Different precisions? Real versus complex coefficients?

(OK, personally I'd use template genericity, not runtime polymorphism,
for this sort of thing, but it's just possible that's what "her" teacher
is looking for.)

--
Richard Herring
Jul 22 '05 #7
John Harrison wrote:
9.design and develop a polymorphic class to solve a general quadratic
equation ax2+bx+c=0


I really don't know what to answer here. Seems like straightforward
class to solve a quadratic equation. The only thing that's puzzling me
is: Why is there the request for polymorphism in the question? Anybody?
(Hmm. There are 2 well known mathematical ways to solve a quadratic
equation. Could it be that this should be used as base for polymorphism?)


I reckon the polymorphism is for different kinds of number class. E.g. real
numbers or complex numbers.


Oh. I see.
Something along

class Number
{
virtual void Add( ... )
virtual void Subtract( ... )
...
// or maybe some operators
};

class IntNumber : public Number
{
...
};

class Solver
{
public:
void Solve( const Number* CoeffA, const Number* CoeffB,
const Number* CoeffC, const Number* Result );
};
Silly assignment.
A template would be far better for this.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 22 '05 #8
Richard Herring wrote:

The only thing that's puzzling me
is: Why is there the request for polymorphism in the question? Anybody?
(Hmm. There are 2 well known mathematical ways to solve a quadratic
equation. Could it be that this should be used as base for polymorphism?)

Different precisions? Real versus complex coefficients?

(OK, personally I'd use template genericity, not runtime polymorphism,
for this sort of thing, but it's just possible that's what "her" teacher
is looking for.)


Yeah. John brought me on that track too.
It's doable, although it would be a silly assignment.
Especially because then the equation solver would not
be polymorphic, but the 'numbers' it crunches.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 22 '05 #9
Vibhajha wrote:
Hi friends,
My sister is in great problem , she has this exam of C++ and
she is stuck up with some questions, if friends like this group
provides some help to her, she will be very grateful.
These are some questions:-
7. design and implement a class binsearch for a binary search tree.it
includes search,remove and add options.make suitable assumption. See <map>. Many implementations of the map use a binary tree of some
type.

8.explai how pointers to functions can be declared in c++.under what
conditions can two pointer variables be added,subtracted and compared? Search the web for "SGI STL". Silicon Graphics Inc. has a good
explanation of pointers and when the can be added, subtracted
and compared.

9.design and develop a polymorphic class to solve a general quadratic
equation ax2+bx+c=0 Sorry, but I don't do urgent homework requests. Contact me
much earlier and I'll be glad to oblige.

If u can provide the full answer it will be great , but if u
can't, send the answer in brief , so, that it is understandable.
Thank you very much VibhaJha.

Search newsgroups, the web and books. Searching is a valuable
skill.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 22 '05 #10
Respected Sirs,
It was very nice to experience some experts knowledge, now
i won't be asking any homework type questions, but can i ask
directions, i mean where i can get the detailed description of all
these topics. I mean being experts , which books u will recommend me.
If i want to get and gain the good knowledge in C++ , which is the
book suited for me as a novice , and which are those books where i can
get the detailed description of these topics , such that in future my
sis don't ask u any homework questions again. Good people don't teach
in 2nd class institutes, so, we never get in touch with expert kind of
knowledge, and i think if people like u means experts help novices
like us, then we can also become expert. By the way , thanks for all
ur suggestions.
Thanking you
sirs...
VibhaJha.
Jul 22 '05 #11
Vibhajha wrote:
[snip] knowledge, and i think if people like u means experts help novices
like us, then we can also become expert. By the way , thanks for all
ur suggestions.


See eq. the FAQ for alt.comp.lang.learn.c-c++

http://ma.rtij.nl/acllc-c++.FAQ.html

It contains a chapter about book recommendation
One suggestion is especially noticable:

http://www.mindview.net/Books/TICPP/...ngInCPP2e.html
"Thinking in C++" is a book you can get for free.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 22 '05 #12

"Vibhajha" <vi*********@yahoo.com> wrote in message
news:8d***********************@posting.google.com. ..
Hi friends,
My sister is in great problem , she has this exam of C++ and
she is stuck up with some questions, if friends like this group
provides some help to her, she will be very grateful.
These are some questions:-
7. design and implement a class binsearch for a binary search tree.it
includes search,remove and add options.make suitable assumption.

8.explai how pointers to functions can be declared in c++.under what
conditions can two pointer variables be added,subtracted and compared?

9.design and develop a polymorphic class to solve a general quadratic
equation ax2+bx+c=0

If u can provide the full answer it will be great , but if u
can't, send the answer in brief , so, that it is understandable.
Thank you very much VibhaJha.


Silly boy. We're supposed to think you're from India, are we? Right. And
I'm from Pakistan. Let's trade nukes. Now bugger off and do your own
homework, little one.

-Howheeardhee

Jul 22 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
9142
by: choksi | last post by:
Hello All I am running PHP5.0.2 over apache 1.3.29 and openssl-0.9.7d on a Debian Linux and with a fake (internal)ip. Php Configure command './configure' '--with-apxs=/www/bin/apxs'...
83
7719
by: deppy_3 | last post by:
Hi.I am started learning Programm language C before some time.I am trying to make a programm about a very simple "sell shop".This programm hasn't got any compile problem but when i run it i face...
4
2178
by: naknak4 | last post by:
Introduction This assignment requires you to develop solutions to the given problem using several different approaches (which actually involves using three different STL containers). You will...
6
2111
by: naknak | last post by:
Introduction This assignment requires you to develop solutions to the given problem using several different approaches (which actually involves using three different STL containers). You will...
1
2312
by: karizmatrix22 | last post by:
Hi, I need a programmer who can write 3 programs for following questions below.Programs need to be ready before nextweek.thank you. Person who help me these 3 questions will be get paid.. I am...
1
1199
by: sauravb | last post by:
hey everybody im a beginner at C++ and i really really might sound dumb but please help me.. al i need to do is display the map of india using borland in graphics mode....i've been searching fr...
0
2562
by: Christopher | last post by:
Urgent Help Needed: The EPVH-1.1 Visual Hull Library. Dear All, I am a student doing research in computer vision. The EPVH-1.1 Visual Hull Library will really help a lot in my research. I...
2
1494
by: feltra | last post by:
Hi, The following is from my friend, who has some technical problem at present in accessing the web... I am writing for him... Kindly request your inputs ASAP, as he has some kind of deadline...
2
1145
by: Rory_Small | last post by:
Help! I am running windows XP Media Edition. I have 4 accounts set up. Mine is the administrator, 2 are granted administrator privileges and 1 is limited. The other 3 accounts cannot access the...
0
7160
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7537
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7099
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5685
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3233
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.