Your program is to simulate this situation. Krusty will be given the total number of courses he will take from the start.
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →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
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds