int creditHour;// intialize number of credit hours
int studyHours;// intialize number of study hours
int actualStudyHours;// intialize the actual number of hours the student spends studying
int diffStudyHours;// intialize the difference between actual study hours and the the amount of hours they should be studying
cin>> creditHour;// take input of number of credit hours from user
studyHours = creditHour *3;// assign study hours with credit hours multiplied by 3
cout<< studyHours << endl;//output number of hours you should spend studying
cout<<"How many hours do you actually spend studying?"<< endl;// Output this question
cin>> actualStudyHours;// take input of how many hours the user actually spends studying
diffStudyHours = studyHours -(studyHours - actualStudyHours);// find the difference between actual study hours and the the amount of hours they should be studying
cout<< diffStudyHours << endl;// Output the difference