a) Write C code using if statements to display ‘Freshman,‘Sophomore’, ‘Junior’ or ‘Senior’ based on what value is invariable classification. Display ‘unknown ’ if classification doesnot contain ‘f’, ‘s’, ‘j’or ‘r’. Allow upper or lower case invariable color. In other words either ‘r’ or ‘R’ will display‘Senior’.
b) Write C code to do the same thing as the previous problem,but use a switch statement.