• Home
  • Blog
  • To write a program in c++ using arrays and struct

To write a program in c++ using arrays and struct

0 comments

Your program is to simulate this situation. Krusty will be given the total number
of courses he will take from the start. You are to help Krusty decide if his course selection will
lead to graduation. Krusty needs a minimum of 8 “eligible”1
courses to graduate. Your program
will take as first input, the total number of courses Krusty will take, followed by a list of
numbers, each representing the index of courses that Krusty plans to take (In the order they
appear in the “course_catalog.txt” file). If there is a combination of the selected courses that can
lead to graduation, then print the statement: “Congratulations!!! Krusty has earned enough
credits to graduate”, followed by a list of the course codes and course names in the order in
which he can take them (Can be ascending or descending). If there is no such combination for
him to graduate, then print the statement: “Krusty hasn’t received enough credits to graduate.Additional details attached

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}