Do it now activity
description
Transcript of 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?
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:
If student's grade is greater than or equal to 60
Print "passed"elsePrint "failed"
EXAMPLE PSEUDOCODE
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
Understand how to use user inputs in your programming
AIM
1. Use int(input()) function2. Use float(input()) function3. Use input() function4. print sentences
LEARNING OBJECTIVES
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
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())
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
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
KEYWORDS
LEARNINGOBJECTIVES
Use int(input()) function Use float(input()) functionUse input() function print sentences
InputFloat
IntegerString
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
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
KEYWORDS
Plenary
LEARNINGOBJECTIVES
Three stars and a wish.
Use int(input()) function Use float(input()) functionUse input() function print sentences
InputFloat
IntegerString
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