Question 1: In college, there are certain requirements
for various courses. For example, Value Seminar in our school requires junior or senior standing.
In our school to graduate the student needs to complete 123 credits. The standing status for each year is defined as follows for College of Arts and
Sciences in our school:
- To be considered Sophomore, student needs to complete at least 26 credits
- To be considered Junior,
student needs to complete at least 57 credits
- To be considered Senior, student needs to complete at least 88 credits.
Write a function standing, that has one parameter, the number of credits student completed so far. The function returns, 1
if the
student is
Freshman, 2 - Sophomore, 3 - Junior, 4 - Senior
Write a function eligible that has two parameters, student standing and 3-digit course number. The funcion returns True, if the student is
eligible to take the course, and False otherwise. Use the following rules:
- Freshman students are eligible to take all 100 Level Courses ONLY
- Sophomore students are eligible to take all 100 and 200 level courses ONLY
- Junior students are eliguble to take all 100, 200 and 300 level courses ONLY
- Senior students are eligible to take ALL COURSES
Write a program that reads number of credits student took so far and the course number student would like to take. The program prints
eligibility message for the student.
Assume that input is VALID.