Print Friendly and PDF
Given the algebraic equation y = ax3 + 7, which of the following, if any, are correct C++ statements for this equation? a) y = a * x * x * x + 7; b) y = a * x * x * ( x + 7 ); c) y = ( a * x ) * x * ( x + 7 ); d) y = (a * x) * x * x + 7; e) y = a * ( x * x * x ) + 7; f) y = a * x * ( x * x + 7 );
Given the algebraic equation y = ax3 + 7, which of the following, if any, are correct C++ statements for this equation?

a) y = a * x * x * x + 7;

b) y = a * x * x * ( x + 7 );

c) y = ( a * x ) * x * ( x + 7 );

d) y = (a * x) * x * x + 7;

e) y = a * ( x * x * x ) + 7;

f) y = a * x * ( x * x + 7 );

Solution:

a) yes

b) no

c) no

d) yes

e) yes

f) no
zubairsaif

Zubair saif

A passionate writer who loves to write on new technology and programming

Post A Comment:

0 comments: