Sunday 16 October 2011

Chapter 1: [E] Convert the following equations into corresponding C statements.









 
corresponding C  statement:
Z = ( 8.8 * ( a + b ) * 2 / c - 0.5 +2 * a / ( q + r ) ) / ( ( a + b ) * ( 1 / m ) )








corresponding C  statement:
X = (-b + ( b * b ) + 2 * (4*a*c) ) / ( 2*a )








corresponding C  statement:


R =( 2 * v + 6.22 * ( c + d ) ) / ( ( g + v ) )










corresponding C  statement:
A = ( 7.7 * b * ( x * y + a ) / c - 0.8 ) / ( ( x + a ) * ( 1 / y ) )



9 comments:

  1. is this really true answer is it so simple ???

    ReplyDelete
  2. o pagi tussi great ho
    wow sari ki sari assignment complete ho gya

    ReplyDelete
  3. i think it is wrong in mathematics way. .
    it should be like this:
    z= (((8.8*(a+b)*2/c)-(0.5+(2*a))/(q+r)))/((a+b)*(1/m));

    x = (-b+(b*b)+2*(4*a*c))/2*a;

    r = (2*v+ (6.22*(c+d)))/(g+v);

    hasil = ((7.7*b*(x*y+a)/c)-(0.8+2*b))/((x+a)*(1/y));

    CMIIW

    ReplyDelete
    Replies
    1. BOTH ARE CORRECT BECAUSE AT FIRST BRACKET THEN MULTIPLY AND DIVIDE BOTH TAKE PLACE TOGETHER THEN +,-- ACCORDING TO IT'S POSITION.

      Delete
  4. I think the d th option is wrong bcos there 2b id missing

    ReplyDelete
  5. En Sab equation ko ess statement m lhikne la rule kya h tell me

    ReplyDelete
  6. Is this really tru answer is it so simple.

    ReplyDelete