IB Computer Science Year 2 Higher Level - August 28 2017 Lesson Notes: Difference between revisions
Mr. MacKenty (talk | contribs) (Created page with " __NOTOC__ <table cellspacing="10" style="width:100%;"> <tr> <td style="width:50%; margin:0; margin-top:10px; margin-right:10px; border:1px solid #dfdfdf; padding:0 1em 1em 1...") |
Mr. MacKenty (talk | contribs) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
* We will review the parking ticket problem | * We will review the parking ticket problem | ||
** Two or three students will share their solutions with the class | ** Two or three students will share their solutions with the class | ||
* We will discuss | * We will discuss two basic computational idea: evaluating conditionals and understanding decisions | ||
** We will write a "guess that number game" | ** We will write a "guess that number game" | ||
<syntaxhighlight lang="html"> | <syntaxhighlight lang="html"> | ||
Please write a simple game that randomly selects a number between 0 and 100. A player must guess the number. Your program should tell the player if their guess is higher or lower than the secret number. | Please write a simple game that randomly selects a number between 0 and 100. A player must guess the number. Your program should tell the player if their guess is higher or lower than the secret number. | ||
* Your program must generate a random number between 0 and 100 and assign that random number to a variable. | * Your program must generate a random number between 0 and 100 and assign that random number to a variable. | ||
* Your program must ask the player to guess a number | * Your program must ask the player to guess a number | ||
* Your program must compare the players guess and the secret number. | * Your program must compare the players guess and the secret number. | ||
* The program should tell the player if their guess is: | * The program should tell the player if their guess is: | ||
** | ** Much higher or much lower OR a little higher or a little lower than the secret number | ||
* Your program must tell the player if they have won | * Your program must tell the player if they have won | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 29: | Line 31: | ||
==[[file:homework.png]] What is our homework? == | ==[[file:homework.png]] What is our homework? == | ||
To help strengthen your learning from today's class, please review the following pages: | |||
* [[Evaluating process]] | |||
* [[Decisions]] | |||
Please create logical rules for the following problem. You should consult our page on [[logical rules]] for help | |||
Dagmara is making some tea. She has many types of teas (over 25 boxes), but we might categorize her tea into a few simple categories. The categories are: caffeinated, non- | |||
caffeinated, herbal, simple, uncommon, and medicinal. One tea could belong to many categories. | |||
Dagmara has some guests and asks if they want some tea. The guests reply "yes, we would like some tea". Dagmara considers the time of day, and prepares the tea for her guests. | |||
Considering one of her guests has hurt her leg, deduce the logical rules Dagmara uses to select tea for her guests. | |||
Please return the homework assignment to me via google docs. I will post this assignment on classroom. | |||
</td> | </td> |
Latest revision as of 09:23, 27 August 2017
What are we going to learn today?[edit]Hello Class!
Please write a simple game that randomly selects a number between 0 and 100. A player must guess the number. Your program should tell the player if their guess is higher or lower than the secret number.
* Your program must generate a random number between 0 and 100 and assign that random number to a variable.
* Your program must ask the player to guess a number
* Your program must compare the players guess and the secret number.
* The program should tell the player if their guess is:
** Much higher or much lower OR a little higher or a little lower than the secret number
* Your program must tell the player if they have won
|
What is our homework?[edit]To help strengthen your learning from today's class, please review the following pages: Please create logical rules for the following problem. You should consult our page on logical rules for help Dagmara is making some tea. She has many types of teas (over 25 boxes), but we might categorize her tea into a few simple categories. The categories are: caffeinated, non-
caffeinated, herbal, simple, uncommon, and medicinal. One tea could belong to many categories.
Dagmara has some guests and asks if they want some tea. The guests reply "yes, we would like some tea". Dagmara considers the time of day, and prepares the tea for her guests.
Considering one of her guests has hurt her leg, deduce the logical rules Dagmara uses to select tea for her guests.
Please return the homework assignment to me via google docs. I will post this assignment on classroom. |
|
How am I being assessed today?[edit]I will assess you formatively today, and make a professional judgement to what extent you understand our learning material. I will use observation, your written work, answers to questions, and contribution to class discussions as datum to make my decisions. I normally record my observations in a "evidence of learning" spreadsheet, which I will happily share with you privately if you so wish. I usually need a day or two notice. |
||
Standards we are covering today[edit]These standards are commonly used from the IB Computer Science Subject Guide[1]
|
As a computer scientist, you have:[edit]
|
|
Credits[edit] |
- ↑ IB Diploma Programme Computer science guide (first examinations 2014). Cardiff, Wales, United Kingdom: International Baccalaureate Organization. January 2012.