I only need help with the \"even seat\" side. The answers are: 1) 5 2)35 3)19 4)
ID: 3725524 • Letter: I
Question
I only need help with the "even seat" side. The answers are:
1) 5
2)35
3)19
4)5
I don't understand how to calculate this without making a program for it, and we don't get to use a calculator. Thanks!
Problem 2 (30 points) Suppose a, b, and c are all integer types. And x, y, and z are all character types Values for the variables are as shown in the table below Odd Seat Even Seat 7 Evaluate the numerical value of the following four expressions (Show your work and label your answer clearhy 1)(a * c)%b 2) a* (c%b) 3) x-y+z 4) x%;Explanation / Answer
1)
(a * c) % b
= (7 * 5) % 6
= multiply 7 with 5
= (35) % 6
= when you divide 35 with 6, remainder is 5
= 5
2) a * (c % b)
= 7 * (5 % 6)
= when you divide 5 with 6, remainder is 5
= 7 * (5)
= multiply 7 with 5
= 35
3) x - y + z
= 'A' - 'j' + '<'
Ascii value of A is 65, Ascii value of j is 106, Ascii value of < is 60
= 65 - 106 + 60
= 19
4) x % z
Ascii value of A is 65, Ascii value of < is 60
= 65 % 60
= when you divide 65 with 60, remainder is 5
= 5