Advanced Visual Basic 2010 Chapter 6 Programming Challenge 6 Undergraduate and Graduate Students
Tutorial 6-8 presented classes named Student and GradStudent. In this programming challenge, you will build on that application. Create another class named AuditStudent that inherits from Student. Create a suitable constructor. Add a CreditsEnrolled property to the Student class, of type Double. Add a TuitionAmount property, of type Decimal.
Audit students and undergraduate students pay the same tuition rate per credit hour. Graduate students pay a different rate. The two tuition rates should be initialized by assigning values to shared properties in the two classes. The TuitionAmount property calculates the amount due by multiplying the CreditsEnrolled by TuitionAmount. However,in the AuditStudent class, add an additional $100 to the TuitionAmount value. For graduate students, the total tuition amount is the same for nine credits as it is for any number of credits higher than that.
Create a user input form that lets the user select a student by name from a list, input the number of credits enrolled, and view the student’s tuition amount.