logo CodeStepByStep logo


Language/Type: VB basics variables

Suppose a real number variable x is defined. Write a single VB statement that stores as a variable y the result of the computation below, modifying the expression to use the * operator exactly four times when computing an equivalent value. (Hint: how could you factor out x here?)

y = 12.3x4 - 9.1x3 + 19.3x2 - 4.6x + 34.2

Bare code: Write a fragment of VB code as described, without any class or function/method heading around your code.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.