Homework 6
- Due No Due Date
- Points 10
- Submitting a file upload
- File Types cpp
Just like the Lab this week, I'll be nit-picky about the requirements so that you'll understand the full effects of switch-case and its uses compared with if/else statements. You'll want to utilize both in both problems.
The first problem is an extension of the menu problem done already. Building off of that, expand the menu problem such that it becomes a full blown (however rudimentary) vending machine program, even the way money is inserted.
The second problem is number-to-text translation for scores as it is used in tennis. As stated in the Additional Requirements, you need to write this problem such that you don't create a unique case for every single score scenario. Your goal here is to create a series of rules that break down the output so that the program can report the correct output without having to create a unique condition for every single scenario yourself (as some of you might have done in HW5).
Rubric
Criteria | Ratings | Pts | |
---|---|---|---|
vend.cpp
threshold:
pts
|
pts
--
|
||
tennis.cpp
threshold:
pts
|
pts
--
|
||
Total Points:
10
out of 10
|