UMBC CS 104
LAB 4
For this lab you are to write several C programs to solve the following problems. Try programs at your ability level first.
Beginner
Intermediate
- Add functionality to the menu that you created in the beginner section such that
when the user enters 'H', it prints "Hello"; 'A' it prints "Aloha"; 'N' it prints "Namasthe";
and S it prints "Shalom". When the user enters 'E', the program should print "Adios"
before it exits the program.
- Create a multiplication table for all the numbers between 1 and 10.
Advanced
- You enter your favorite store with $74.87. Your favorite items cost $4.21, $4.52, and $4.63 respectively. You spend all of your money, you buy one of each item and you buy a total of 17 items. How many items of each did you buy?