The curriculum of any bachelor degree program consists of credit points which must be completed by all students enrolled in the program. Write a C++ program that will ask the user to enter their name, program credit points, and expected credits to be completed yearly. The program will then calculate the degree duration in years, calculated as follows:
Degree duration in years = program credit points / expected credits to be completed yearly.
The program will display the student name, degree duration, and expected graduation year in the below sample output:
Expected graduation year equals year 2015 plus degree duration.
Sample Input (input is bold):
Enter your name: Ali
Program credits: 130
Expected credits: 30
Sample Output:
Name: Ali
Degree duration: 4 years
Expected graduation year: 2019