Question: Write an assignment statement for the following mathematical equation: y = ( 1 / 3 ) x + ( x / 4 ) + 2
Write an assignment statement for the following mathematical equation:
y x xx
Keep x as an integer. Use an expression that matches the equation's right side as closely as possible. If the input is the output is
Hints:
Don't rearrange the equation or try to simplify it
If both operands of division or other operators are integers, integer division is performed, which rounds down; so for example is So make at least one operand a floatingpoint type, as in or to cause floatingpoint division.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
