English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

my assingment is to make a program to find roots of a quadratic eq. i know the formul but the codes r driving me nuts......plz help me.
i also have to make a program to get the following out put-
*****
***
*

2006-09-10 01:35:26 · 5 answers · asked by Anonymous in Computers & Internet Programming & Design

hey ppl i really need to submit the c++ program to find the roots of a quadratic equation.........else my grade will go down.......i dont wanna loose the top most place............plz help me

2006-09-10 01:55:30 · update #1

5 answers

Your question borders on academic dishonesty, if I were your TA I would have to report you to your professor. Here is a suggestion, go into office hours and ask the TA or professor for help. Also, if you know the formula the rest is easy. This program requires that you use the cmath library and most likely iostream.

documentation on the cmath library
http://www.cplusplus.com/ref/cmath/

documentation on the iostream library
http://www.cplusplus.com/ref/iostream/

That is all the help I will offer you. With this information and the formula you should be able to write this program. Just to let you know, TA's and professors do watch this site.

2006-09-10 05:13:01 · answer #1 · answered by Anonymous · 0 1

I grew up in an extremely small city and extreme college substitute into have been each and all of the interest substitute into aside from getting inebriated and making out. I even did a number of that during school. LOL it relatively is stressful to have confidence I survived extreme college and that i substitute into an "A" pupil. college is have been women have been and have been I performed soccer so I had a blast. It did no longer injury that via the time i all started extreme college my Dad had provide up ingesting (He substitute into between the worst alcoholics I even have ever considered) . mom substitute into nevertheless a discomfort yet Dad and that i grew to become maximum suitable acquaintances, So i think my view of my extreme college years is a sprint biased. the college Dances have been huge events in a small city that had one movie prepare with only 1 exhibit, no rapid foodstuff eating places and no department shops. We did no longer get Rock concert events coming interior one hundred fifty miles so i did no longer see my first stay stay overall performance till I went away to college till you count variety community bands taking part in on the Dances.

2016-09-30 13:10:37 · answer #2 · answered by ? 4 · 0 0

wow... this really brings back my old memories (or nightmares) in computer science :)

i do Java so im not sure about writing a C++ program for it..
bascially, this is what the program should look like:

int count = 5;
while (count > 0){
int count2 = count;
while(count2 > 0){
print( "*" );
count2 = count2 - 1;
}
print( );
count = count - 2;
}

EDIT: Actually... the person above is right... you really should try doing this by yourself, or you might as well drop that class since you are not good enough for it...

2006-09-10 01:40:42 · answer #3 · answered by NewWorld 1 · 0 0

Sorry to be harsh but if its your assignement then your going to have to do it yourself, trust me its all good experience and you'll be a better coder by learning by the mistakes yourself. If someone else does it for you then you will not learn and if school/college/uni find out you could be kicked off your course.

2006-09-10 01:39:40 · answer #4 · answered by Tiger 5 · 0 0

Keep studying diligently. Maybe you can bring that C++ up to a B-- or even a solid B.

Good luck sweets...

2006-09-10 01:41:54 · answer #5 · answered by Anonymous · 0 0

fedest.com, questions and answers