HI GUYS I HAVE 2 WEEKS INTO THIS SUBJECT C++ AND OUR LECTURER HAS SINCE GIVEN US AN ASSIGNMENT.ONE OF THE QUESTION STATES;
CONVERT THE FOLLOWING ALGEBRAIC EXPRESSIONS TO C++
a) M= A+B+C+D+E/5

B)Y=MX+B

C)Z=PR+Q+W/X-Y

D)Y=X(SQUARED)/B(SQUARED)

E)Y=AX(SQUARED)+BX+C

F)3(a+17)

g)x+2=28

h) 50
n+5 =10

i)7x(squared)+4x-10

j)A IS NOT EQUAL TO B

Recommended Answers

Thanks for letting us know.

Post your code if you get stuck.

here's a quick example of what a) could be.

``````double _a(double A,double B,double C,double D,double E){

return A + B + C + D + (E / 5);
}
``````

Suzie is being nice to you - we are not supposed to solve your homework assignments for you, though I think she just gave you a foot up to help you get started. :-)

All 5 Replies

Thanks for letting us know.

Post your code if you get stuck.

here's a quick example of what a) could be.

``````double _a(double A,double B,double C,double D,double E){

return A + B + C + D + (E / 5);
}
``````

Suzie is being nice to you - we are not supposed to solve your homework assignments for you, though I think she just gave you a foot up to help you get started. :-)

Oh, and for the future, please do not use ALL CAPS in your postings like that. It is universally considered quite rude, as it is seen as the equivalent of shouting at the top of your lungs. Proper punctuation, grammar and netiquette are quite important in fora like these, especially in an international venue like DaniWeb.

Hello.... am new in programming and am not well able to have a course... so may someone who cares help mi with his /her notes or how to go about it please

can any1 tl me tht y we use %d,getch() etc.....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.