Homework 4
- Due No Due Date
- Points 10
- Submitting a file upload
- File Types cpp
Part of learning how to conduct logic is making sure that your definition is absolutely airtight. You need to be very explicit with your logic statements in order to make sure your statement does what you think it does. Computers do not work with ambiguity and neither should you as an engineer. In the first problem, you'll be translating the Triangle Inequality Theorem into code. Note the fact that ALL possible combinations of sides must be accounted for SIMULTANEOUSLY in order to have a possible triangle. Though not necessary, try drawing out various lines on a piece of paper and practice your visual spacing to reason whether or not a triangle is possible from the lines you drew. It may help double check your work.
For the second problem, let me just get this out of the way: there's a lot of copying and pasting for this one. Don't worry about efficiency. Double check that you're using the right variables in the right places. Remember that you’re NOT allowed to use anything I haven’t covered yet!
Rubric
Criteria | Ratings | Pts | |
---|---|---|---|
triangle.cpp
threshold:
pts
|
pts
--
|
||
multiples.cpp
threshold:
pts
|
pts
--
|
||
Total Points:
10
out of 10
|