Sequential instructions refer to groups of instructions which follow a strict order. We can observe this by example:
Task: Create a program which prompts the user to enter two numbers. The program must out put the sum of the two numbers.
Solution in narrative form:
Prompt the user to enter the first number and accept the data. Prompt the user to enter a second number and accept the data. Calculate the sum. Output the sum to the user
Solution in Flowchart:
Notes/observations
Notice that to accomplish this task all steps are followed in sequence.
Variables are used as containers to store data input from the user and to store the results of processing for output. E.g num1, num2 for input storage, and result for storage and output.
the box which contains result <–num1+num2 can be interpreted as “adding the contents of num1 to num2 and then storing the value that was produced by processing in result
the line result <–num1+num2 can also be written as result = num1+num2
Homework: Draw a flowcharts which accomplish the following tasks
1. Prompt the user to enter 3 numbers and output the sum
2. Prompt the user the enter 2 numbers and output the product
3 Prompt the user to enter 2 numbers and outputs the quotient (first number divided by the second number.) . What happens if the user enters the first number as 5 and the second number as 0 ?
Update
Updated on 18/11/2021 to include section “Notes observations” and 3 additional observations other than the first listed item.
Flowcharts are graphical representation of algorithms. They consist of shapes which contain instructions that can be followed. The order of execution of instructions is determined by arrows which start from the “Start” shape, move onto other intermediate shapes until execution stops at the “End” shape.
The shapes used are shown below:
We will observe how these symbols are used to represent the solution to a problem in our next post on Sequence.
This is a recording of class made on the 8th october 2020. This video demonstrates skills that were learnt and practised in class. Use this video for review, skip through parts that are not relevant to you , just pay attention to the skills!
The video below was captured during a repeat of the class above. FYI:
Cell – A single location in a spreadsheet that can store data. It is the intersection of a row and column
row – A horizontal arrangement of cells , usually denoted by a number
column – a vertical arrangement of cells ,usually denoted by a letter, cell,
value – the data that is stored in a cell.
formula – a representation for a calculation stored within a cell. The formula itself is not displayed, rather, the results of the calculation is displayed in the cell.
range – a group of cells; can be a group of horizontal cells, a group of vertical cells, a block of cells, or even many different blocks of cells.
worksheet – a single spreadsheet in a workbook.
workbook – a file , consisting of many worksheets (individual spreadsheets). A workbook is a file which is comprised of 1 or more worksheets (spreadsheets)
See the following objective content and related videos
These videos were chosen for each topic because they cover the subject matter in a relevant context. They definitely were not created specifically for the CSEC Syllabus, however , they do address the fundamental concepts in real world scenarios.
6. select appropriate input/output devices to meet the needs of specified applications;
Associate the following devices with suitable applications:
(a) Input: Optical mark reader (OMR), character readers (OCR, MICR), mouse, joystick, bar code reader, document scanner, light-pen, touch terminals, voice response unit, Touch Screens (tablets, point of sale, ATM), keyboard, digital camera, biometric systems, sensors, remote control, sound capture, pointing devices, webcam.