(a) Classes are used to group a few related, named, data values associated with an entity. It is typically a noun referr
Posted: Fri Jul 01, 2022 5:47 am
statement? If yes, modify the coding accordingly. If no, write your explanation and suggestion. C6 [SP3] [3 marks]
(a) Classes are used to group a few related, named, data values associated with an entity. It is typically a noun referring to a problem. A method is a block of code which only runs when it is called. (i) (ii) Explain why do programmers want to make various classes as opposed to putting everything into different methods in the one class that contains the main method? C2 [SP1] [2 marks] 1 | 2 | Customize Table 31 41 1 2 3 4 7 12 17 19 22 24 9 11 13 14 16 18 21 23 26 28 Figure Q3(a)(ii): Customize Table Write a Java program which can generate the Customize Table in Figure Q3(a)(ii) by using Nested For Loop. C5 [SP4] [7 marks] (iii) Is it possible to modify Java program in Q3(a)(ii) to use if-else