Question: IN JAVA: Perform each of the calculations below, and put the result in the box to the right. Pay careful attention to the difference between

IN JAVA:

Perform each of the calculations below, and put the result in the box to the right. Pay careful attention to the difference between int and double (whether or not there is a decimal point) and String and char (whether there are single or double quotes). If the operation cannot be performed or does not make sense, say so.

a. 4 + 7

b. 5 6.412

c. 5 + 12 / 7

d. 16 / 3.0 + 4

e. 11 / 2 + 3.2

f. 3 + 98

g. (int) 9.942

h. 3.1 + 15 / 12 * 5

i. 3.1 * 15 / 12 + 5

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 Databases Questions!