From Computer Science Wiki
|
|
Line 5: |
Line 5: |
| ==[[File:class_plan.png]] What are we going to learn today?== | | ==[[File:class_plan.png]] What are we going to learn today?== |
|
| |
|
| # Today in class we will focus on conditionals and loops | | # Today in class we will focus on conditionals and loops [http://pastebin.com/UZSJsYQn click for PHP] |
| # We will learn about the two types of loops | | # We will learn about the two types of loops |
| # We will use almost all the conditional [[operators]] we can | | # We will use almost all the conditional [[operators]] we can |
Latest revision as of 12:40, 22 September 2016
What are we going to learn today?[edit]
- Today in class we will focus on conditionals and loops click for PHP
- We will learn about the two types of loops
- We will use almost all the conditional operators we can
- If time permits, we will COMBINE conditions and loops
|
Homework[edit]
- Please create a program which converts a numeric grade to a letter grade
- the grade bands work like this:
Numeric grade |
Letter Grade
|
0 to 59 |
F
|
60 to 69 |
D
|
70 to 79 |
C
|
80 to 89 |
B
|
90 to 100 |
A
|
Following is the criteria for a successful program:
- Your program must have a variable named
$student_score
- The variable must be assigned a whole number from 0 to 100
- Your program must correctly output the letter grade
- if the
$student_score variable is 10, the output should be F
- if the
$student_score variable is 65, the output should be D
- if the
$student_score variable is 78, the output should be C
- if the
$student_score variable is 85, the output should be B
- Your program must adhere to our style guide
This homework assignment will be assessed using our Problem set assessment
|
How am I being assessed today?[edit]
- You will be formatively assessed in class today
|
Standards we are covering today[edit]
- Identify the condition associated with a given decision in a specified problem.
- Explain the relationship between the decisions and conditions of a system.
- Define the operators =, ≠, <, <=, >, >=, mod, div.
- Click here for all our standards
|
As a computer scientist, you have:[edit]
- Confidence in dealing with complexity
- Persistence in working with difficult problems
- Tolerance for ambiguity
- The ability to deal with open-ended problems
- The ability to communicate and work with others to achieve a common goal or solution
|
Credits[edit]
|