Use a while loop to allow the user to enter the number of credit hours a student plans to take next semester. The program should allow the user to enter the number of credit hours as many times as desired. Be sure to use the appropriate sentinel value. The program should display a message with the student fees each time the user enters a new set of credit hours.
The tuition is based on the number of credit hours a student registers, as shown below:
Number of credit hours Student Fees
1 – 5 $270.00
6 – 11 $540.00
12 and over $820.00
If the user enters credit hours zero or below, display the appropriate error message.
The code should take the tuition and total it up after each time the user inputs data