IB Computer Science Year 2 Higher Level - August 28 2017 Lesson Notes: Difference between revisions

From Computer Science Wiki
(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...")
 
Line 14: Line 14:
<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
** 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>



Revision as of 09:14, 27 August 2017

Class plan.png What are we going to learn today?[edit]

Hello Class!

  • We will review the parking ticket problem
    • Two or three students will share their solutions with the class
  • We will discuss a basic computational idea: evaluating conditionals.
    • 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 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


Homework.png What is our homework?[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 data 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.

Target.png 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.

Ourstandards.png Standards we are covering today[edit]

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



Computer1.png 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

Credit.png Credits[edit]

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