0

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

6
Contributors
5
Replies
60
Views
3 Years
Discussion Span
Last Post by ann.mughal.5
0

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);
}

Edited by Suzie999

0

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. :-)

0

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.

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.