1 / 15

Do it now activity

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

goldy
Download Presentation

Do it now activity

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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?

  2. 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

  3. Example Pseudocode If student's grade is greater than or equal to 60 Print "passed" else Print "failed"

  4. 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.

  5. AIM Understand how to use user inputs in your programming

  6. Learning objectives Use int(input()) function Use float(input()) function Use input() function print sentences

  7. Learning outcomes By the end of this lesson you will be able to ....

  8. Learning objectives Use int(input()) function Use float(input()) function Use input() function print sentences New Learning Copy table Input Float Integer String

  9. 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

  10. 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

  11. Learning objectives Use int(input()) function Use float(input()) function Use input() function print sentences Input Float Integer String

  12. 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

  13. 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

  14. 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

  15. Learning outcomes By the end of this lesson you will be able to ....

More Related