150 likes | 207 Views
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
E N D
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?
Learning objectives Homework Pseudocode You 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: DataBitNibble GigabyteTerabyte
Example Pseudocode If student's grade is greater than or equal to 60 Print "passed" else Print "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 grade Add the grade into the total Set the class average to the total divided by ten Print the class average.
AIM Understand how to use user inputs in your programming
Learning objectives Use int(input()) function Use float(input()) function Use input() function print sentences
Learning outcomes By the end of this lesson you will be able to ....
Learning objectives Use int(input()) function Use float(input()) function Use input() function print sentences New Learning Copy table Input Float Integer String
Copy Keyword Learning objectives Use int(input()) function Use float(input()) function Use input() function print sentences Copy Keyword Input: Data that is accepted into a program Input Float Integer String
Learning objectives Use int(input()) function Use float(input()) function Use input() function print sentences Learning development Using input statements: name = input("What is your name?") age = int(input("How old are you?")) print (name, "is a lovely name, You are", age) COPY SYNTAX Input Float Integer String
Learning objectives Use int(input()) function Use float(input()) function Use input() function print sentences Input Float Integer String
Learning objectives Use int(input()) function Use float(input()) function Use input() function print sentences Talk task What is an integer? What is a float? What do we mean by input? What is a string? Input Float Integer String
Learning objectives Use int(input()) function Use float(input()) function Use input() function print sentences Independent task Complete the coding challenge sheet How many challenges will you complete! Input Float Integer String
Plenary Learning objectives Use int(input()) function Use float(input()) function Use input() function print sentences Three stars and a wish. Input Float Integer String
Learning outcomes By the end of this lesson you will be able to ....