Modify class Grade Book (Fig. 4.12) as follows: a) Include a second in auto-implemented property that represents the marks obtained by a student in a course. b) Modify the constructor to specify two parameters—one for the course name and one for the marks obtained. c) Modify method Display Message such that it first outputs the welcome message and course name, then outputs “Marks obtained: ”, followed by the marks obtained. Use your modified class in a test app that demonstrates the class’s new capabilities.

0 comments