Comparison of computer systems

© 2018 Vedesh Kungebeharry. All rights reserved
Comparison of computer systems

© 2018 Vedesh Kungebeharry. All rights reserved
The hardware components include the keyboard , monitor , cpu (processor) an the hard drive. In this lesson, we wish to observe the main functions for each component category.
Data processing has a logical organization divided into 4 main steps functions.
Computers input data via input devices, processes the data to produce information which is in turn output to the user via output devices. The results of processing or even the captured data can be stored on storage devices.

Input : to get data into the computer system
Processing: perform some operation on data as directed by software instructions.
Output: to make the results of processing (information) available to the computer user.
Storage: to store data and information for future use.

© 2018 Vedesh Kungebeharry. All rights reserved
Computing disciplines are sometimes fundamentally distinct or may differ subtly. The difference among disciplines originates based on the use of computer systems as a tool and for the purpose of further developing the tool.
Computer Technology is the broad use of computers to solve problems.
Information technology is the study and use of computer technology for effective information storage, access, and manipulation; that is, information management.
ICT is an extension of IT, in includes effective information management across all major communication channels including telephone, wired and wireless computer networks.
Computer science is a branch of science which deals with the fundamental principles of computer design and use.
Computer science focuses on computer architecture and how to program computers to make them work effectively and efficiently[1].
[1] Computer Concepts (2011) p514
© 2018 Vedesh Kungebeharry. All rights reserved
Definition: A problem is a required change from the current state of things to a desired future state.
Definition: Computational thinking is use of ideas in a structured manner to solve a problem, such that it can be eventually used to instruct a computer.
Building applications or programs is essential to aiding computer users to perform tasks.
We use computational thinking to analyze problems in order to build applications that solve those problems.
There are four principles that are used to solve problems computationally.
They are:
© 2018 Vedesh Kungebeharry. All rights reserved
Create an algorithm in flowchart AND pseudocode to accomplish the following task:
“output the squares of all numbers from 2 to 75 inclusive”.

The solution was also generated in Flowgorithm and is shown below:

Similar solution generated in Flowgorithm
The solution in PSEUDOCODE is shown below:
Start
For i = 2 to 75
Output i , ” Squared is ” , i * i
EndFor
End
The pascal code for the above algorithm is shown below:

Solution in bloodshed Dev Pascal
Copy-able code:
program Squares;
uses
crt;
var
i:integer;
begin
for i:=2 to 75 do
writeln (i, ‘ squared is ‘ , i*i);
writeln();
writeln(‘Press any key to continue…’);
readkey();
end.
The following is a solution in C#:

Solution created using Visual Studio Community Edition
See here for instructions on setting up Visual Studio to start using C#
Copy-able code:
using System;
namespace Squares
{
class Program
{
static void Main(string[] args)
{
for (int i = 1; i <= 75; i++)
Console.WriteLine(i + ” squared is ” + (i * i));
//pause execution here
Console.WriteLine(“press any key to continue….”);
Console.ReadKey();
}
}
}
© 2018 Vedesh Kungebeharry. All rights reserved
Definition: A protocol set of rules for communication
Definition: VOIP is the protocol which governs voice communication by sending the audio over the internet.
VOIP can be implemented by phone handsets which is connected to a computer network. Some popular apps also allow for VOIP, e.g Skype, Whatsapp, Discord, Telegram etc.

Figure 9 VOIP Implementation (Credit: http://cat5comms.com/landlines-and-voip/)
Some reasons why we use VOIP are:
© 2018 Vedesh Kungebeharry. All rights reserved
Exercise: block problem
3 blocks ABC rest on a desk. What are the steps to stack B on C on A?
After completing the exercise, continue:
Computational thinking allows for us to arrive at well defined steps based on the tool that we are using.
If a robotic Arm Were used the steps would be:
If we were directing a human, we might arrive at:
You may arrive at an entirely different solution:
Computational thinking allows for us to find General solutions to problems also. For example, if our problem was
“ N blocks rest on a table. Create a stack using all blocks. “
Using a robotic arm , our solution would be:
Note that:
© 2018 Vedesh Kungebeharry. All rights reserved
A student reproduced a programming question for me today:
Write a program which accepts 2 integers separated by a space. If the first integer is less than the second integer, output a message stating this fact e.g “The first number is smaller”, else swap the values of both variables which contain the integers respectively.
Before the program exits, print both integers respectively.
A flowchart for the solution is shown below. Note that, input is obtained on separate lines, a limitation of the software used to create the chart, flowgorithm:

Below is a suggested solution written in pascal code:

Copy-able pascal code here:
program swap;
uses crt;
var
num1,num2,temp:integer;
begin
writeln(‘Please enter 2 unequal integers separated by a space…’) ;
//read data separated by a space
readln (num1,num2);
if (num1>num2) then //we swap the numbers using a tempoary varible
begin
temp:=num1;
num1:=num2;
num2:=temp;
end //notice that there is no semicolon on this line.
else//print message
writeln(‘num1 is less than num2’);
writeln();
writeln(num1,’ ‘,num2) ;
writeln(‘Press any key to exit…’);
readkey;
end.
Below is a suggested solution written in c# code (generated by flowgorithm and edited to accept input of the two integers on one line):

Copy-able c# code here:
using System;
public class Program
{
public static void Main()
{
int num1, num2, temp;
string anykey;
Console.WriteLine(“Please enter 2 unequal integers separated by a space…”);
//Read line, and split it by whitespace into an array of strings
string[] tokens = Console.ReadLine().Split();
//Parse element 0
num1 = int.Parse(tokens[0]);
//Parse element 1
num2 = int.Parse(tokens[1]);
if (num1 > num2)
{
temp = num1;
num1 = num2;
num2 = temp;
}
else
{
Console.WriteLine(“num1 is less than num2” + “\n”);
}
Console.WriteLine(num1 + ” ” + num2 + “\n”);
Console.WriteLine(“Press any key to exit.” + “\n”);
anykey = Console.ReadLine();
}
}
© 2018 Vedesh Kungebeharry. All rights reserved
In this class, we use computational thinking to solve a mathematical problem.
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.
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:
Homework:
© 2018 Vedesh Kungebeharry. All rights reserved
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
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: ____________________
|
Insert the page into your ICT portfolio.
© 2018 Vedesh Kungebeharry. All rights reserved