Question: Assume this: int a = 7 ; double b = 0.4 ; Evaluate each of the following expressions by hand. Show your work, using a

Assume this:

int a = 7; double b = 0.4; 

Evaluate each of the following expressions by hand. Show your work, using a separate line for each evaluation step. Check your work by writing and executing a program that evaluates these expressions and outputs the results.

  1. a + 3 / a
  2. 25 / ((a - 4) * b)
  3. a / b * a
  4. a % 2 - 2 % a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!