Do it now activity

15
KEYWORDS Do it now activity Last lesson we learnt about variables and how use comments age = 10 daysInYear = 365 ageInDays = What three variables have I created? What is a variable? How would I work out ageInDays? What do you notice about how I have written my variable names?

description

Do it now activity. Last lesson we learnt about variables and how use comments age = 10 d aysInYear = 365 ageInDays = What three variables have I created? What is a variable? How would I work out ageInDays ? What do you notice about how I have written my variable names?. Learning - PowerPoint PPT Presentation

Transcript of Do it now activity

Page 1: Do it now activity

KEYWORDS

Do it now activityLast lesson we learnt about variables and how use comments

age = 10daysInYear = 365ageInDays =

What three variables have I created?What is a variable?How would I work out ageInDays?What do you notice about how I have written my variable names?

Page 2: Do it now activity

KEYWORDS

LEARNINGOBJECTIVES

DataBitNibble

GigabyteTerabyte

Homework PseudocodeYou will be given a home learning sheet to complete for homework this term.

Complete challenge 1.

Your teacher will explain what you need to do.

Due:

Page 3: Do it now activity

If student's grade is greater than or equal to 60

Print "passed"elsePrint "failed"

EXAMPLE PSEUDOCODE

Page 4: Do it now activity

Set total to zero

Set grade counter to one

While grade counter is less than or equal to ten

Input the next gradeAdd the grade into the totalSet the class average to the total divided by ten

Print the class average.

EXAMPLE PSEUDOCODE

Page 5: Do it now activity

Understand how to use user inputs in your programming

AIM

Page 6: Do it now activity

1. Use int(input()) function2. Use float(input()) function3. Use input() function4. print sentences

LEARNING OBJECTIVES

Page 7: Do it now activity

LEARNING OUTCOMESBy the end of this lesson you will be

able to ....

ALL(Level 4)

Designs, writes and debugs programs

MOST(Level 5)

Use a range of operators and expressionsSelect the appropriate data types

SOME(Level 6)

Detect and correct syntactical errorsExplain and use functions appropriately

Page 8: Do it now activity

KEYWORDS

LEARNINGOBJECTIVES

Use int(input()) function Use float(input()) functionUse input() function print sentences

InputFloat

IntegerString

Copy table

New LearningData type Input statement for codingString – text ie Ark William Parker … etc

input()

Integer – whole numbers ie 1, 10, 20, 34 … etc

int(input())

Float – number with decimal ie 1.45, 2.67. 123.67 … etc

float(input())

Page 9: Do it now activity

KEYWORDS

Copy Keyword

LEARNINGOBJECTIVES

Input: Data that is accepted into a program

Copy Keyword

Use int(input()) function Use float(input()) functionUse input() function print sentences

InputFloat

IntegerString

Page 10: Do it now activity

KEYWORDS

LEARNINGOBJECTIVES

Using input statements:1. name = input("What is your

name?")2. age = int(input("How old are you?"))3. print (name, "is a lovely name, You

are", age)

Learning development

COPY SYNTAX

Use int(input()) function Use float(input()) functionUse input() function print sentences

InputFloat

IntegerString

Page 11: Do it now activity

KEYWORDS

LEARNINGOBJECTIVES

Use int(input()) function Use float(input()) functionUse input() function print sentences

InputFloat

IntegerString

Page 12: Do it now activity

KEYWORDS

LEARNINGOBJECTIVES

1. What is an integer?2. What is a float?3. What do we mean by input?4. What is a string?

Talk task

Use int(input()) function Use float(input()) functionUse input() function print sentences

InputFloat

IntegerString

Page 13: Do it now activity

KEYWORDS

LEARNINGOBJECTIVES

Complete the coding challenge sheet

How many challenges will you complete!

Independent task

Use int(input()) function Use float(input()) functionUse input() function print sentences

InputFloat

IntegerString

Page 14: Do it now activity

KEYWORDS

Plenary

LEARNINGOBJECTIVES

Three stars and a wish.

Use int(input()) function Use float(input()) functionUse input() function print sentences

InputFloat

IntegerString

Page 15: Do it now activity

LEARNING OUTCOMESBy the end of this lesson you will be

able to ....

ALL(Level 4)

Designs, writes and debugs programs

MOST(Level 5)

Use a range of operators and expressionsSelect the appropriate data types

SOME(Level 6)

Detect and correct syntactical errorsExplain and use functions appropriately