Welcome to Dream.In.Code
Become a C++ Expert!

Join 149,451 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,147 people online right now. Registration is fast and FREE... Join Now!




help with turbo turbo c classwork

 
Reply to this topicStart new topic

help with turbo turbo c classwork, im trying to figure out this in order to study for my 1st examn. (new

ponchox26
7 Feb, 2008 - 10:06 AM
Post #1

New D.I.C Head
*

Joined: 7 Feb, 2008
Posts: 2

the thing is suppose to look like this

______________________________

Solve Quadratic Equation
Please input a:
b:
c:
Infinite solucion
Do more (Y/N)? _

_______________________________

ax^2+bx+c = 0
User is offlineProfile CardPM
+Quote Post

Amadeus
RE: Help With Turbo Turbo C Classwork
7 Feb, 2008 - 10:11 AM
Post #2

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,347



Thanked: 51 times
Dream Kudos: 25
My Contributions
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Thanks.
User is online!Profile CardPM
+Quote Post

ponchox26
RE: Help With Turbo Turbo C Classwork
7 Feb, 2008 - 10:24 AM
Post #3

New D.I.C Head
*

Joined: 7 Feb, 2008
Posts: 2

code

void main()
{
float a, b, c;
int choice;
char more ='y';

clrscr ();
while (more == 'y' || more == 'Y' {
printf ("\n\n\t\tSolve Quadratic Equation");
printf ("\n\t\tInput a number: ");
scanf ("%d", &choice);

while (a =

------
thats all i have done. im not sure if im wrong or right
User is offlineProfile CardPM
+Quote Post

TheMagnitude
RE: Help With Turbo Turbo C Classwork
7 Feb, 2008 - 01:39 PM
Post #4

D.I.C Head
Group Icon

Joined: 12 Jan, 2008
Posts: 88



Thanked: 1 times
Dream Kudos: 125
My Contributions
QUOTE(ponchox26 @ 7 Feb, 2008 - 11:06 AM) *

the thing is suppose to look like this

______________________________

Solve Quadratic Equation
Please input a:
b:
c:
Infinite solucion*
Do more (Y/N)? _

_______________________________

ax^2+bx+c = 0

You spelt solution* wrong. Also Im not quite sure where your going with this code. And since when does a quadratic ever have an infinite solution with values inputted by the user.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/7/09 01:04PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month