Presentation is loading. Please wait.

Presentation is loading. Please wait.

Starter Load up One Note

Similar presentations


Presentation on theme: "Starter Load up One Note"— Presentation transcript:

1 Starter Load up One Note Open the Note for this lesson and complete the starter activity

2 Lesson Objectives This lesson we are going…
To be able to define the term "output“ To be able to create simple programs which make use of console output To be able to perform basic string manipulation

3 Some terminology You might remember this from Year 7… You’re going to see a lot of lines of code that look like this: OBJECT.PROPERTY() Or OBJECT.METHOD()

4 The ever handy intellisense shows methods as purple cubes
Properties are little spanners. (I mean that in the nicest possible way, it’s not meant to be an insult to properties…) But what is a Property or Method?

5 Something we can use in a program. E.g. The console
Some definitions Object Something we can use in a program. E.g. The console Property Something which describes the object or a value stored in the object. Can be looked at or changed. Method Something an object can DO. For example write a line of text to the screen. Usually takes a parameter or some data Parameter/Data Something which is usually passed (given) to a method. Such as the text you want to output or a variable to use.

6 Tasks Complete task 1 in your notebook.

7 Output In the starter task you wrote some code which put text on the screen. This is Output. To output to the console we use the method “Writeline” You must always enclose all text to be output in “quotes” – This is called a “string literal”

8 A “String Literal” is… Literally… …A string… …Of characters. And you thought these lessons would be hard.

9 Task Complete task 2

10 To do useful things, we need to be able to bolt bits of text together
Concatenation To do useful things, we need to be able to bolt bits of text together This is called “concatenation” Concatenation, and string manipulation… (I’m sorry, I’ll get my coat) 🎵🎶🎵🎵🎶🎵🎵🎶🎵

11 The simplest way to do this is to use the ampersand symbol &
There’s lots of cool things we can do to a bit of text In the next task you will: Bolt bits of text together Pull bits of text apart

12 Task Complete task 3

13 Review Complete the review tasks in your notebook.


Download ppt "Starter Load up One Note"

Similar presentations


Ads by Google