Question: Question 2 a) Write a complete C+ + program that displays the grade the student got. The student enters his/her mark and the output is

Question 2 a) Write a complete C+ + program that displays the grade the student got. The student enters his/her mark and the output is the grade. Use the table below. Marks % 90-100 80-89.9 70-79.9 60-69.9 Less than 60 Grade Fail [9 marks] b) What is the output of the following code fragment? Explain your answer int xe0 intx 13 [4 marks] c) Given the following code fragment, what is the final value of y? Show your working, by using a dry run table. [5 marks] int x, y 0; while r
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
