IB Computer Science Year 2 Higher Level - August 30 2017 Lesson Notes: Difference between revisions
Mr. MacKenty (talk | contribs) |
Mr. MacKenty (talk | contribs) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
Computational thinking today!! | Computational thinking today!! | ||
* We will take a 3 to 5 minute break to get grounded | |||
* We will learn about GPS | * We will learn about GPS | ||
** https://www.youtube.com/watch?v=FU_pY2sTwTA | ** https://www.youtube.com/watch?v=FU_pY2sTwTA | ||
** https://www.youtube.com/watch?v=4O3ZVHVFhes | ** https://www.youtube.com/watch?v=4O3ZVHVFhes | ||
We will then carefully read an IB test question and answer the questions: | We will then carefully read an IB test question and answer the questions. The questions are used from the IB and should not be reproduced with their consent.<ref>IB Diploma Programme Computer science guide (first examinations 2014). Cardiff, Wales, United Kingdom: International Baccalaureate Organization. January 2012.</ref> | ||
<br /> | |||
[[File:Gps question.png|200px]] | [[File:Gps question.png|200px]] | ||
When you are done with the questions on the image, please consider the next part: | |||
Another Smartphone app that is linked to LookUpLunch collects customers’ reviews for restaurants. | |||
* A review consists of whether a customer likes the restaurant, and a rating of cheap (C), medium (M) or expensive (E). The app combines all of the reviews to produce a single letter rating (C, M or E) and a total number of likes for the restaurant. | |||
* As part of the internal representation of the app, the collection LIKES is used. Some of the data items contained in LIKES are shown below. Each individual data item is separated by a comma. | |||
0,26,TomHus,M,<u>1,14,GladLaks,E</u>,2,1,MerPoteter,C,1,15,Linie,E,0,2,Mezze,M... | |||
The restaurant GladLaks, underlined as an example, is located within zone [1]. Based on the | |||
reviews, this restaurant has 14 likes and is expensive. | |||
* (c) Construct an algorithm that outputs the name of the restaurant with the most likes in zone [1]. [5] | |||
* (d) By making use of binary trees and the collection LIKES, explain how a list could be produced that shows the restaurants in order of zone and then, within each zone, in order of popularity. [3] | |||
Individual restaurants are able to use this app to see reviews from their customers. | |||
* (e) Describe one disadvantage of the use of feedback from social networking in relation to business. [2] | |||
Line 25: | Line 44: | ||
==[[file:homework.png]] What is our homework? == | ==[[file:homework.png]] What is our homework? == | ||
Please come to class with the questions answered from todays lesson. | |||
</td> | </td> |
Latest revision as of 12:14, 31 January 2018
|
|
|
|
||
|
|
|
|
- ↑ IB Diploma Programme Computer science guide (first examinations 2014). Cardiff, Wales, United Kingdom: International Baccalaureate Organization. January 2012.
- ↑ IB Diploma Programme Computer science guide (first examinations 2014). Cardiff, Wales, United Kingdom: International Baccalaureate Organization. January 2012.