Using Computational Thinking to solve a Math problem

In this class, we use computational thinking to solve a mathematical problem.

Class Activity – Finding the sum of a range of numbers

Complete the following task in your ICT notebook showing all working

Task: Without the aid of your classmates, find the sum of all whole numbers from 1 to 200 inclusive.

(15 minutes)

Discovery: at least 3 different methods were found. One interesting solution was the addition of al the ones (1+11+21..+91 = 460) then all twos (2+12+22+…+92 = 470) etc.

Teacher Demonstration and Discussion

Practical: Observe students suggestions, pattern recognition, past algorithms, decomposition into sub problems

Demonstrate:

1+2+3+4+…………+197+198+199+200

Observe the sum of pairs from out going in always sum to 200.

Determine the number of pairs.

Note that the steps to solve this problem are:

  • Find the sum of the first and last numbers (1+200)
  • Find the number of pairs (200/2)
  • Multiply the results of 1 and 2.

Further Exersises and Discussion – Finding the Sum of a Range Of numbers

Homework:

  • Using a similar approach as shown above, write the set of steps to find the sum of numbers from 1 to 10
  • Write the steps to find the sum of any range of numbers from which form a complete number of pairs. (e.g 5 to 10)
  • Write the steps to find the sum of any range of numbers from which form an incomplete number of pairs. (e.g 5 to 11)

© 2018 Vedesh Kungebeharry. All rights reserved

Ergonomics

Definition: Ergonomics is the science of designing objects for safe and efficient use by the people who use them.

It is usually applied to employees and the tools and furniture they use in the workplace.

Required Reading : How to sit at a computer – https://www.wikihow.com/Sit-at-a-Computer

 

Portfolio Assignment

Use the internet to find a suitable picture showing how one should properly sit at a computer.

 

Print the picture and attach it to a page with the following details as illustrated in the diagram below:

The proper way to sit at a computer

By ___[Student Name]______

Date: ____________________

 

 

 

 

 

[IMAGE GOES HERE]

 

 

 

 

 

Insert the page into your ICT portfolio.

 

 

 

© 2018  Vedesh Kungebeharry. All rights reserved

Getting Set Up For C# Programming

C# programming  can be achieved by using Microsoft Visual Studio.  Below are some steps for setup:


  1. Visit https://www.visualstudio.com/downloads/
  2. Download and run the installer for Visual Studio Community Edition :

VS 01


3. The installer configures the installation…….

VS 02

…..and sets itself up for the main installation of visual studio.

VS 03


4. Next, you will be faced with installation options.  For now, select all options as shown below, and click on install:

VS 04

Visual studio will now be downloaded and installed.

VS 05


5. After Installation, when you run Visual Studio, you will be faced with a login screen:
VS 06

 

If you have an existing Microsoft account you can sign in.

Otherwise, you will need to create one then login.

From here on, you can start using visual studio 🙂

 

© 2018  Vedesh Kungebeharry. All rights reserved

 

 

 

 

 

 

Introduction to Computational Thinking

When solving a problem it is important to define what the problem is and identify the goal that must be achieved  to solve the problem.

In doing so we must identify the possible ways of achieving the goal using the information available.  To determine the possible ways, it is useful to produce a list of conditions that must be satisfied for the goal to be achieved.

Class Practical 1

In class demonstration: (Game: Wolf, Sheep, Cabbage)

Teacher Draws and Discusses the game with students with no prior information.

Homework

  1. Create a list of conditions which must be satisfied when for solving the problem
  2. Produce all possible, solutions to this problem

Class Practical 2

 

In this class we shall observe some logic games.

Preparation

  • Students are to divide their copybook page into two columns (page is folded vertically to quickly set up the scenario).
  • The first column is given the heading “Steps”.
  • The second column is unlabeled.

Wolf Sheep And Cabbage

 

 

  • 1 student is chosen at random to perform the task of solving the problem in the game. We call this student the “actor”.
  • All other students are instructed that they are not allowed to talk or assist during the exercise ( No blurting out “no” Prep students for  self control)
  • The game is explained to the actor.
  • Discuss the first actions with the actor. Silent students must write their first action, the main student takes his own action.
  • As consequences emerge, students and the actor write down the rules.
  • Every reset, write down the steps.

 

Discussion

-Are there any students with a different solution?

-Are there any rules for the boat?

-Are there different ways to start the problem?

In class Exercise

Write the steps to solve the problem.

 

Homework

Visit http://www.softschools.com/games/logic_games/ and play some of the logic games.

Write down some of the rules for the games that you have played. Use the following format:

Game nameGoal(s)Rules
Wolf, Sheep and Cabbage.Main goal: Get all items safely across the river

Secondary Goals: Do not lose any items to ‘eating’

 

 

·         Only one item is allowed in the boat

·         The sheep and wolf should never be left alone

·         The cabbage and the sheep should never be left alone.

   
   
   

 

In your notebook, complete at least 3 rows of the table. i.e the rules and goals for at least 3 logic games.

 Updates to this post

22nd Apr 2024: Added “When solving a problem….” up to and including Class practical 1. This class practical is meant or use in a classroom with no lab .

The previous class practical was renamed to Class Practical 2 and is meant for use in a Computer lab.

© 2018  Vedesh Kungebeharry. All rights reserved

Typing – Practical Exercise

For this exercise, you must download and install TIPP10 using the following link:

https://sourceforge.net/projects/portableapps/files/TIPP10%20Portable/

The version of TIPP10 used in this lesson is 2.1.0

Exercise

  1. Start TIPP10
  2. Select Lesson 18 and set the duration of the lesson to 300 characters.tipp10Tut01
  3. Click Start Training.
  1. Get your hands into position and press the spacebar to start.

tipp10Tut02

 

  1. At the end of the lesson, display your results to your teacher:tipp10Tut03

 

Credit: Screenshots taken fromTIPP10 Portable version 2.1.0.

See: https://www.tipp10.com/en/

 

© 2018  Vedesh Kungebeharry. All rights reserved

Typing using a QWERTY Keyboard

The best practice for typing using a QWERTY Keyboard can occur in two mains steps:

  • Align you fingers on the home keys. Your hands should gently rest such that your left pinky to left index fingers are over the ASDF keys and your right index finger to right pinky hovers over the JKL;
  • Each key should only be pressed by the finger as shown in the chart below:
    Keyboard Finger Chart
    [1]

 

[1] https://www.shutterstock.com/image-vector/keyboard-finger-chart-left-right-include-297853160?drawer=open

© 2018  Vedesh Kungebeharry. All rights reserved

Keyboards and Keyboard Layout

Computer Keyboards

 

Definition: Computer Keyboards allow for users to input text.

Computer Keyboards can be either implemented as physically as hardware or displayed by  software on a screen as an on screen keyboard.

apple-keyboard-apple-mouse-background-585752 (1)Figure 2 – Physical Keyboard

on screen keyboard thewindowsplus.org-virtual-keyboard-windows-7-8-10[1]

Figure 3 – On Screen Keyboard

Keyboard layouts

 

Definition: Keyboard layout is the standard positioning of letters, numbers and symbols on a computer keyboard

There are many different keyboard layouts which are suitable for different purposes.

In the English language, the most popular ones are the QWERTY keyboard and the newly popular ABC Layout keyboard.

 

QWERTY Keyboard Layout

 

The QWERTY layout keyboard is the most popular. The Keyboard gets its name from the arrangement of letters found on the first lettered row of the keyboard:

apple-keyboard-apple-mouse-background-585752 (1)

Figure 4 A Qwerty Keyboard

 

The layout of the keyboard was influenced by how difficult it was to repair the keyboard when damaged.

Keyboards were originally used on the first typewriters.   The typewriters were mechanical in nature and used a close arrangement of thin long hammers on levers triggered by the pressing of keys.

Typewriter hammer press animated

Figure 5 – Hammers of a typewriter  (from:typewriters.ch/images/underwood_noiseless_portable_gif.gif)

The original keyboard layout for a typewriter was alphabetical.  The problem was that typing at high speeds caused adjacent hammers to tangle or jam.

The keys were re arranged  to a random order to deliberately slow down typing speeds in order to prevent tangles and other mechanical issues.

In other words, the keyboard was made difficult to learn to prevent typewriter breakdown.

Because typewriters using this layout became popular due to less breakdowns, the keyboard layout became widely adopted, and this layout has come to be expected  in all modern computer systems due to it’s familiarity and conventional use.

ABC Layout Keyboards

 

ABC Layout Keyboards are laid out in alphabetical and numerical order as shown below:

ABC Keyboard[2]

Figure 7 ABC Layout Keyboard

 

This keyboard layout was only popular among hobbyists and was only designed as a proof concept. However, with the emergence of software onscreen keyboards for searching in popular apps such as youtube and Netflix, they have risen in popularity.

Most younger kids have a difficult time using a qwerty keyboard for the first time due to the difficulty in finding letters that are not in alphabetical order.

Because most kids (and some older users who don’t regularly use a computer) are already familiar with the order of the alphabet, the ABC layout is easy to learn for first time users.

Now, this keyboard layout has widespread use as an on screen keyboard on smart TVs and other touch screen apps because of its ease of adoption.

QWERTY users may find the ABC layout least difficult to adopt due to it’s logical alphabetical ordering.

What Are the main reasonS for other layouts ?

 

  1. Apart from hobbyist layouts, other layouts are used when the script (letter types ) are different in other languages. An Example is shown below:

 

Devorak

[3]

Figure 6 Devorak Simplified keyboard

  1. Other Layouts are intended to improve ergonomics in order to reduce repetitive strain injury. An example is shown below:truly_ergonomic_keyboard_layout_2013-09-04[4]

[1] https://www.howtogeek.com/240288/how-to-use-the-on-screen-keyboard-on-windows-7-8-and-10/

[2] http://www.ergocanada.com/products/keyboards/big_keys/bigkeys_bklx.html

[3] https://upload.wikimedia.org/wikipedia/commons/2/25/KB_United_States_Dvorak.svg

[4] http://xahlee.info/kbd/Truly_Ergonomic_keyboard_layout.html

© 2018  Vedesh Kungebeharry. All rights reserved

 

Categories of Software

Software can be divided into 2 groups: application software and system software.

Software Categories

Application Software

Definition : Application software is used to perform user tasks.

For example, a computer user may prepare a letter using a word processor such as Microsoft word.

Other examples include Spreadsheet Software, Photo Editing software etc.

System Software

Definition: System Software is used to manage the hardware resources of a computer including maintenance and allowing Application Software to indirectly control the hardware.

The Operating system

Definition: The operating system is used to control the computers basic functions and control hardware.

For example, when using a word processor the operation system allows for accepting input from the keyboard and mouse of the computer, and producing output to the monitor.

Examples of operating systems include:

  • Windows
  • Mac OS X
  • Android
  • iOS

Utility Software

Definition: Utility software is used to maintain and upkeep the computer system, or provide extended functionality to the operating system.

Utility software is designed to perform one task only.

For example, Windows Disk Cleanup maintains the system by providing a facility to remove unused or redundant files. This utility is provided by the windows operating system.

Disk Cleanup Screenshot

Other third party applications can extend functionality in the form of antivirus software, backup software etc.

© 2018 Vedesh Kungebeharry. All rights reserved

Wikis for online collaboration

What is a Wiki?

Definition:  A wiki is a website which allows users to add or edit content on its pages.  Users of the wiki can collaborate on some or all pages of the wiki.

Definition: Collaboration[1] is when people work with each other to complete a task. It involves co-operation and teamwork and the sharing of ideas, knowledge and skills to reach the same objective. The objective is usually creative in nature.

A well-known example of a wiki is Wikipedia an online user edited encyclopedia.

Wikis can be used to collect and maintain information on a subject or topic.  For example, a teacher can collaborate with students to collect and maintain information on the subject being studied in school.

Main Functions of a wiki

Wikis allow for :

  • Adding new content
  • Editing or Modifying existing content.
  • Deleting existing content (deleting pages)

Additional Features of a wiki

A wiki may be either private, public, or semiprivate.

Private wikis

Private wikis require users to register in order to create user accounts.  The content on the wiki is only viewable and editable on by  registered users.

Public wikis

Public wikis allow for the creation of user accounts but still allow for the public to view and edit information.

Semi Private wikis

Semi Private wikis allow for content to be viewable to the public and registered users.

Some topics may be locked for editing by unregistered users. However, unregistered users may add new pages and edit locked content.

Some topics may be only edited by small groups of specially selected registered users.

Advantages and Disadvantages of Wikis

Advantage Disadvantage
Quick generation of a large information resource due to many collaborators Users can add inaccurate or incorrect information
Easy to add and edit and improve on existing content Difficult to manage and remove incorrect information
Wiki collaboration does not require all users to work at the same time. biased information can be produced if the collaborator is biased.
Prone to vandalism, malicious users can intentionally distort information

UPDATES:

24th Sept 2022 – Fixed spelling error in title and changed url

© 2018  Vedesh Kungebeharry. All rights reserved

[1] https://kids.kiddle.co/Collaboration

What is Software?

Definition: Software is a set of instructions that a computer can follow to carry out a specific task.

 

Software can be thought of as programs that is run on any computer system, whether it be a videogame for entertainment or a word processor for productivity.

Software ultimately controls hardware, which are the physical components of the computer system. It’s important to note that hardware cannot function without being instructed by software to do something.

Software is made up of a sequence of instructions written in computer code.  We can think of software being made up of program code.

Kotlin in IntelliJ Idea - parameters hints

When you play a videogame, it’s the game’s software code that controls the hardware to produce sound and draw graphics on the screen.

GAME with C# Code 3
Figure 1 – A Video game with accompanying Program Code

Attributions to Media used in this post

Klapi, CC BY-SA 4.0 https://creativecommons.org/licenses/by-sa/4.0, via Wikimedia Commons

Updated Tuesday 26th October 2021 - Added note on program code, added gif image and media attributions.

© 2018 Vedesh Kungebeharry. All rights reserved