Homework 7
- Due No Due Date
- Points 10
- Submitting a file upload
- File Types cpp
Remember, you're not allowed to use anything we haven't yet covered in class!
For the first problem, we'll be revisiting the binary8.cpp problem from Homework 3. This time, now that we've covered loops, we'll take the original problem and change it such that it works for ALL POSITIVE base 10 values (as much as what a single int variable can handle, that is). Keep in mind that you're still not allowed to use anything we haven't covered, so your best bet is to take the solution I gave you guys for binary8.cpp and translate that into a loop. Furthermore, you will need to figure out a way to tell you program where to get your loop to start...
The second loop is a non-math application of loops. You'll be constructing a rudimentary ATM program. In real ATMs, like most applications, you can return the main menu at any given time, an infinite number of times, to do whatever it is you need to do. Furthermore, you'll need to construct a basic security system. PLEASE USE 1065 as your PIN number, as that makes grading easier for me. You'll need multiple loops to solve this problem. Start by identifying where actions are repeated and design the logic that determines the loop's execution.
Just so we're clear, there's nothing saying that there's only one loop involved in either problem.
Homework 7.pdf Download Homework 7.pdf
Rubric
Criteria | Ratings | Pts | |
---|---|---|---|
binary_all.cpp
threshold:
pts
|
pts
--
|
||
atm.cpp
threshold:
pts
|
pts
--
|
||
Total Points:
10
out of 10
|