Question market 1) Give the owing code petite find belofane LE 2. 3. 4. Table Stepincang Stop D Given the Soring code is gefied the value of another solution steps in Table Tot 5.0 ... Title : Seeping we Anh Step Tunturi
Question 3 (10 marks) 1) Given the following code segment in Figure 4, find the value of Z and show the solution steps in Table 1. (5 marks) int a=2, b=4, c=3, d=6, e=5; ++b += a + C + / (04); Figure 4 Step 0 Table 3: Step in evaluating arithmetic expression Arithmetic Operation ++b+=a*c+e/(d%4)
i) Given the following code segment in Figure 5, find the value of Z and show the solution steps in Table 4. (5 marks) int a-3, b-4, c=6; float x=5.0, y=7.0, 2; 2 = (a + y) • x-b+ca / -by; Figure 5 Step Table 4: Step in evaluating arithmetic expression Arithmetic Operation Z=(a + y) *x-b+c%a/-by 0
没有找到相关结果