Return To CS 110 Home

Colour Theme   Font Size Options
 
   
   
   
Exercise 1

For Loop and Switch-Case Exercise

Use ex1_caseswitch.cpp in the replit team project or copy the following code into your IDE:


The purpose of this program is to demonstrate how to use switch-case statements, and to help you practice writing for loops.

The completed program will use a for loop to ask for 6 letter grades. A switch case statement will give an appropriate message for any letter typed, including error messages for incorrect letters.

Instructions:

When you are done: