Friday, October 10, 2014

Write a function called convertStatus that is passed status code \"f\", \"s\",...

Write a function called convertStatus that is passed status code \"f\", \"s\", \"j\", or \"r\" and returns the string \"freshman\", \"sophomore\", \"junior\", or \"senior\", respectively. Design your function so that if an inappropriate letter is passed, an error value is returned. Make sure to include an appropriate docstring with your function.

No comments:

Post a Comment