Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
Need Help with a Program Project.
Post Flair (click to view more posts with a particular flair)
Post Body

The Program is supposed to repeatedly prompt the user for the three coefficients values,a,b and c, and will then evaluate the expression below and display the two possible values for x(I used X and Y as my two values). And when a=999 it will terminate the program without asking for b or c. These are the errors I get when I try to compile. Am I even on the right track or am I way off?

Any help would be appreciated

Error E2277 program1.cpp 18: Lvalue required in function main()

Error E2451 program1.cpp 26: Undefined symbol 'Return' in function main()

Error E2379 program1.cpp 26: Statement missing ; in function main()

Error E2134 program1.cpp 27: Compound statement missing } in function main()

*** 4 errors in Compile ***

include<iostream.h>

include<math.h>

int main()

{

int X;

int Y;

int a;

int b;

int c;

cin>>a;

while(a!=999)

{

cin>>b;

cin>>c;

}

if (650-7cc<=-1)

cout<<"Negative under the radical"<<endl;

else if (a-4*c=0)

cout<<"Divided by zero"<<endl;

else

{

X=(-3b)-sqrt(650-7cc)/(a-4c);

Y=(-3b)-sqrt(650-7cc)/(a-4c);

cout<<X<<endl;

cout<<Y<<endl;

Return 0;

}

Author
Account Strength
90%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
666
Link Karma
660
Comment Karma
6
Profile updated: 5 days ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago