CS 200 - Lab 11

Class standing calculator

Your Task

Write a program to determine what class (Freshman, Sophomore, Junior, or Senior) a student is in based on the number of credits he or she has earned.

Here are the rules for deciding what class a student is in:

Credits
Class
0-29
Freshman
30-59
Sophomore
60-89
Junior
90 or more
Senior

Example run of the program (user input in bold red):

Number of credits earned: 39
You are a Sophomore

Another example:

Number of credits earned: 125
You are a Senior

Getting Started

If you have a solution open in Visual Studio, close it (File->Close Solution).

Download lab11.zip.  Import it into Visual Studio (File->Import...).

Add your code to the source file called ClassStanding.c.