ICT
 
 
home search Contact
Lmarsden is a non-profit information site

Week 02: Computational Thinking - Introduction to coding

Class Task and Information

  • Lesson 01: Introduction to programming (Concatenation + Variables)

    • Video Tutorial Files -= What to Do =-
      • You will need to view the video file and stop it along the way so you can implement, do what the video files shows you.
      • Remember: Information Action = KNOWLEDGE
      • Remember to save your work as you go.


    • Tutorial 01: Setting up Python Projects using PyCharm
    • So you have installed Python coding language and the pyCharm IDE and you are ready to set up your project. This tutorial will help you establish a folder to work in and demonstrate how you and create, save, close and retrieve your work for the next programming session.

    • Practical Tutorial 02: Python - Working with output - reformatted, escape codes, complex sentences

      • Create a program that will output the following information:
        • Task 01: A List of all your subjects
        • Task 02: Create some word art e.g.
          • ______________$$$$$$$$$$$
            ___________$$$$$$$$$$$$$$$$$
            _________$$$$_____________$$$$
            _______$$$$$________________$$$$
            ______$$$$___________________$$$$
            _____$$$$_____________________$$$$
            _____$$$_______________________$$$
            $$$$$$$$$$$$$$$$$$$$$$$$$$$$____$$$
            __$$$$$$$$$$$$$$$$$$$$$$$$______$$$
            ____$$$__________$$$$$$$$$$$$$$$$$$$$$$$
            ____$$$________$$$$$$$$$$$$$$$$$$$$$$
            _____$$$_______________________$$$$
            _____$$$$_____________________$$$$
            ______$$$$___________________$$$$
            _______$$$$$________________$$$$
            _________$$$$_____________$$$$
            ___________$$$$$$$$$$$$$$$$$
            _______________$$$$$$$$$



      • Place a screen shot of your code in myFlinders under the submissions (multiple submissions accepted)



      • Tutorial 03: Python - working with user input and concatenated strings
      • Complete the tutorial and test your solution with a person from the class.
        • Homework: Have a parent or guardian or sibling complete the program for homework. Take a screen shot of their answers.
        • Place a screen shot of this in myFlinders under the submissions (multiple submissions accepted)

      • Task: Create your own complex and concatenated sentence or story. Have at least 5 questions and 2 data types for users to answer.
        • Homework: Have a parent or guardian or sibling complete the program for homework. Take a screen shot of their answers.

        • Place a screen shot of your code in myFlinders under the submissions (multiple submissions accepted)


  • Lesson 02: Random Numbers
    • Tutorial 01: Python - Random Numbers - Randint, Choice, Randrange

    • Code Snippet - Data Types and Variables


    • Programming Task: (create a complex text output for the user)
      • Task 01: Create a 52 sided Dice for a user to use at a Dungeon & Dragons competition.
      • Place a screen shot of your CODE in myFlinders under the submissions.

      • Task 02: Create a Lucky Number generator that will create a number between 1 and 777.
      • Place a screen shot of your CODE in myFlinders under the submissions.

      • Task 03: Make a 2019 future predictor (you set the ranges and choices) that will show the user their luck and success in:
          • Love
          • Wage increase
          • You will sing best in the key of..
          • Days on holiday
          • Place to holiday will be
          • Fun
          • Increased Positivity
          • Laughter
          • Chance of winning Lotto
          • Winning the grand finals
          • Number of new friends
          • etc
        • Place a screen shot of your CODE in myFlinders under the submissions.

        • Task 04: Allow the user to set the size of the dice and then let them roll the dice
        • Place a screen shot of your CODE in myFlinders under the submissions.


  • Lesson 03: Decision Structures (If/Then, If/Then/Else, ELIF [Case / Switch])
    • Enabling the computer to make a decision - students are to view the following tutorial and answer the following task questions below:

    • Code Snippet:




    • Programming Task after you complete the tutorials:
      • Task 01: Ask the user to enter the current temperature and if it is over 32 then tell the user "The weather is awesome for the beach!"

      • Task 02: Take in a test score (using the input statement) and tell the user if they have passed the test. Remember you may have to use a line of code like (convert text to integer):

        • person_age = int(input("Enter your age: "))

      • Task 03: Take in their test result (like 20) and the maximum marks for the test (like 40) and if it is above 50%, tell the user they have passed.

      • Place a screen shot of your CODE in myFlinders under the submissions.



      • Task 04: Roll a dice [ 6 sides] (look at random number from the previous lesson) and output the text result of the dice roll as words e.g. One, Two, Three etc..

      • Place a screen shot of your CODE in myFlinders under the submissions.



      • Place a screen shot of your CODE in myFlinders under the submissions.

Readings / Homework

 

 

 

 

Focus Point

 

 

Information