Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A student needs to take a certain number of courses to graduate, and these cours

ID: 3866975 • Letter: A

Question

A student needs to take a certain number of courses to graduate, and these courses have prerequisites that must be followed. assume that all courses are offered every semester and that the student can take an unlimited number of courses. Given a list of courses and their prerequisites, compute a schedule that requires the minimum number of semesters.

Yourr C++ algorithm should output the min number of semesters required to graduate. Assume that a student needs to take at least m courses to graduate.

Explanation / Answer

Algorithm for the Above Description:

The algorithm for the above description of the program is as follows:

START

int numOFSem;

String subCode, courseName;

Input from user the name of the course

Store the value in courseName;

if(courseName == "A particular Course")

for(i=0;i<=numOFSem;i++)

Ask the user for subjectCode for Sem "i":

if(course == numOFSem)

print "You have completed the course....Congratulations."

else

print "More Semesters to go...."

END

Please rate the answer if it helped......Thankyou

Hope it helps.....