3 a) Explain the importance of comments in programming and outline how this is achieved in java (3..
3 a) Explain the importance of comments in programming and outline how this is achieved in java (3 mks)
b) Explain the following components of an object and give an example in each case
i. Field variables ( 3 mks)
ii. Constructor ( 3 mks)
iii. Methods ( 3 mks)
c) i) Write an algorithm that computes the total score of a given student using the cat marks and exam scores and
displays whether the student has passed or failed. Assume that the pass mark is 40 percent. (4 mks)
ii) Implement the above solution using a flowchart and pseudo code (4 mks)
