Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(6 pts) Provide each result for the following C language expressions. Numbers li

ID: 3743717 • Letter: #

Question

(6 pts) Provide each result for the following C language expressions. Numbers listed without a decimal point are considered integer values and ones with a decimal point are considered double precision floatingpoint values. a. 12 % 13 =___________ b. -8 / 3 =___________ c. 7.0 / 3 =___________ d. 16 % 3 =___________ e. 7 + 3 * -2 =___________ f. 5.5 – 7 / 7.0 + 12.45 * 2 =___________ 4. (3 pts) What C data types should be used to best represent the following? For each blank, you may list int, double, or char only. These types may be used multiple times. a. The number of employees at WSU on any given day?________________ b. The precise number of centimeters in an inch? __________________ c. A letter grade in a course?

Explanation / Answer

If you post more than 1 question, then as per chegg guidelines I have to solve only first question. Also, if you post more than 4 parts in a question, then as per chegg guidelines I have to solve only first 4 parts.

(a) Answer : 12

It is a modulous operation. In this, the program return the remainder when the first number is divided by the second number.

So, when we divide 12 by 13, we get 12 as remainder.

(b) Answer : -2

In this case, we are dividing integer by and integer. So, the result is the division of two number rounded to the neares smaller integer.

So,

-8 / 3 = -2.66666

which is rounded to -2.

(c) Answer : 2.3333

We are dividin double with an integer. So, the integer is converted into double and then divided. So,

7.0 / 3 = 7.0 / 3.0 = 2.6666

(d) Answer : 1

It is a modulous operation. In this, the program return the remainder when the first number is divided by the second number.

So, when we divide 16 by 3, we get 1 as remainder.