Posted: Fri Oct 24
Due: Tuesday 10/28 10:00am
Submission name: New GH Classroom Link
All the instructions for this assignment can be found in README.md after you click the link above to make a new repository.
- Period 9: https://classroom.github.com/a/maPWnkeW
- Period 10: https://classroom.github.com/a/i3UfBn1D
Sample Output:
Question 0
rolls: '(3 2 3 3 11 10)
Question 1
even values: '(2 10)
odd values: '(3 3 3 11)
Question 2
even total: 12
odd total: 20
Question 3
even losing roll: #t
odd losing roll: #f
Question 4
even score: 0
odd score: 20
Question 5
game with 6 rolls: 0
game with 5 rolls: 29
Skills Assessed
| Skill | Minimal Competency | Developing Competency | Competency | Mastery |
|---|---|---|---|---|
| 3. Writing functions/procedures. | Can write the contract for a function. | Can write simple functions given a contract. | Can write complex functions given a contract and can write contracts for functions given a specified task. | Can write contracts for complex functions, implement those functions and create effective test cases for them. |
| 4. Understanding Algorithms | Can follow an algorithm to produce a desired outcome. | Can break down a simple problem into basic steps that will result in a desired outcome. | Can break down a problem into basic steps and implement those steps in code. | Can analyze the differences between 2 or more algorithms that produce the same desired outcome. |
| 5. Working with Boolean Values | Understands the purpose of boolean values. | Demonstrates the appropriate use of comparison operators. | Demonstrates the appropriate use of comparison and boolean operators. | Writes functions that take in boolean values and/or return boolean values. |
| 6. Using Conditional Statements | Can trace the result of a single conditional statement. | Can write conditional statements with one or two results. | Can write nested conditional statements. | Can use at least two different kinds of conditional statements, and understand the benefits of each. |
| 7. Using Variables | Recognizes the difference between variables and literals | Demonstrates ability to understand code which uses variables | Correctly uses variables in programming | Correctly uses the appropriate types of variables for different programming algorithms |
| 8. Using Randomness in Programs | Can use one language provided random function. | Can use a random function to generate integers or floating point values in a specified range. | Can use random functions to produce random integers and floating point values within specified ranges. | Can use random functions with conditional statements to write functions with randomly controlled outcomes. |
| 10. Data Structures | Understands the difference between single values and data structures. | Can describe how one data structure stores data. | Can use a data structure to store multiple values in a program. | Can use language provided features to effectively create and access data in a data structure. |