IB Computer Science Year 2 Higher Level - August 28 2017 Lesson Notes

What are we going to learn today?

Hello Class!

• We will review the parking ticket problem
• Two or three students will share their solutions with the class
• We will discuss two basic computational idea: evaluating conditionals and understanding decisions
• We will write a "guess that number game"
```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 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?

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?

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

These standards are commonly used from the IB Computer Science Subject Guide[1]

As a computer scientist, you have:

• 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

1. IB Diploma Programme Computer science guide (first examinations 2014). Cardiff, Wales, United Kingdom: International Baccalaureate Organization. January 2012.

Offer a considered and balanced review that includes a range of arguments, factors or hypotheses. Opinions or conclusions should be presented clearly and supported by appropriate evidence.

A unit of abstract mathematical system subject to the laws of arithmetic.

Reach a conclusion from the information given.

Consider the merits or otherwise of an argument or concept. Opinions and conclusions should be presented clearly and supported with appropriate evidence and sound argument.