How can I make sure that the courses I plan for are offered in those semesters?
You should always review your plan with your advisor, as they will be your best resource for knowing when particular courses in their discipline are offered. Final course schedules are available to students online shortly before registration.
If you discover that a course you had planned for is not being offered, you should identify an alternate course and adjust your plan accordingly.
