Lab 6
- Due No Due Date
- Points 10
- Submitting a file upload
- File Types cpp
This is where I start to get picky with the requirements because I want to ingrain in you guys to actually understand the functions I'm teaching you, not just throw things at the wall and see what sticks.
On problem 1, use your constants and variable design to control your menu. Like menu settings on every game ever, write your program such that you can easily change out your menu items and their respective prices without ever having to modify the spacing on the menu itself for new items. Guarantee the two column alignment by design, not by brute force.
On problem 2, this is technically a static program. Using the sentence I provided in the example, recreate the exact same program with a switch-case WITHOUT BREAKS to re-create the exact same sentence at the 5 different lengths. Yes, this problem is rather non-sensical with no obvious application. I'm just trying to show you guys how switch-case statements work when the breaks are absent.
On problem 3, you'll want to revisit what I previously taught you guys about ASCII to solve this problem. The program is incredibly short, with only one variable needed. Furthermore, write this program such that there are no stray/raw integer values dangling in the code. Don't overthink this one.
Rubric
Criteria | Ratings | Pts | |
---|---|---|---|
menu.cpp
threshold:
pts
|
pts
--
|
||
sentence.cpp
threshold:
pts
|
pts
--
|
||
ascii_ID.cpp
threshold:
pts
|
pts
--
|
||
Total Points:
10
out of 10
|