Video: Cloud Storage

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.

OBJECTIVE/TOPICContentLink
Evaluate the relative merits of cloud storage and local storage;Definition of cloud and local storage. Assessment criteria: capacity, cost, accessibility; security issues.Cloud: https://www.youtube.com/watch?v=gu4FYSFeWqg

© 2020  Vedesh Kungebeharry. All rights reserved. 

Stacks Implementations and Variations

NB: This post is intended for use within our class. It serves as a rough guide for our discussion on the implementation and use of a stack.

For this post there are 2 important requirements:

  1. The prerequisite post which was an exercise in creating a stack from previously supplied code. It is imperative that you complete the tasks from that post found here: Stack Operations (Exercise)
  2. A Code Packet that you must scrutinize. You can download it from the file link : U2 M1 S02 – Stack Implementations-CodeBackup.zip

Guide


Step 1

Assumption: Attempts were made to complete the tasks in Stack Operations (Exercise)

We now look at a sample attempt in flowgorithm (Flowcharting graphical programming language) found within 02 Flowgorithm Stack Exercise of the code packet labeled U2 M1 S2 – StackOperations-01 using size to keep track of top.

Note that this attempt does not use a pointer to the top of the stack; instead we keep track of the size of the stack , much like our implementation found here : Stacks.

It is important to recognize that keeping track of the size of a stack is NOT THE MOST POPULAR implementation.

Still, take some time (~10-15 mins) to observe how the operations for push, pop and peek are accomplished

Step 2

Look at a sample attempt in flowgorithm (Flowcharting graphical programming language) found within 02 Flowgorithm Stack Exercise of the code packet labeled U2 M1 S2 – StackOperations-02 using top instead of size.

In this attempt, we keep track of the index of the item stored at the top of the stack.

Keeping track of top is the most popular accepted way to implement a stack.

Take some time (~10-15 mins) to observe how the operations for push, pop and peek are accomplished, and observe the differenced from the previous sample attempt.

Step 3 – Coded attempt in C (Sample)

Scrutinize the code and run the program found in 03 U2 M1 S2 Stack SimpleExercise. Note that error checking is minimal, and when edge cases are encountered dummy values are returned, e.g as in when we try pushing to an already full stack ( see the push function from more detail )

Although this method works, it’s not the most elegant solution.

Step 4 – Simple Error checking/handling based on Step 3

If we scrutinize the code found in 03.1 U2 M1 S2 Stack SimpleExerciseErrorChecks we find that error messages are added to our push operation and we added the ability for our push operation to return a boolean value. Previously no values were returned, push was void.

However, we now return true if a successful push was made and false (along with an error message) if a failed push was made (e.g our stack was already full when push is called).

Note that peek and pop will always need to return data, and in this case dummy values in error conditions will suffice , but we ensure that error messages are also displayed.

Step 5

Moving on from our exercise we consider the following problem:

Create a program which demonstrates a function which reverses a string (character array) in place , i.e the data of the character array is directly manipulated. Prompt the user to enter a string and output the string in reverse.

The solution to this problem can be found in 04 U2 M1 S2 Stack-String Reversal.

Examine how the code in the main function works. Note that it uses push and pop only to achieve it’s task.

The stack used to implement the solution to this problem is similar to our simple stack with minimal error handling ; only this time our datatype is set to char.

Step 6

if we observe the code in 05 U2 M1 S2 Stack-String ReversalErrorChecks we see that the overall logic for data processing remains the same , only this time we implement some basic error handling techniques.

Previously Recorded Classes on this Topic

Stack Implementations and Variations (Live Class – 2025-09-11_09-59-29)

Updates to this post:

2025-09-17: Added section for “Previously Recorded Classes”

© 2020  Vedesh Kungebeharry. All rights reserved. 

Adding a Webpage with common website elements

In this lesson we would like to observe how we would create a new web page in WordPress, observe the different presets that are available for us when choosing a layout for that webpage , And eventually choose a blank web page to create our own layout .

We will insert an image to our webpage and wrap text around that image.

We will also observe how to create hyperlinks that link to another web page or an email address or even to a file .

Finally, we will observe how to add this web page to our website using the existing menu navigation system .

Please follow along with the video to create a practice web page on your website. Good luck!

© 2020  Vedesh Kungebeharry. All rights reserved. 

Videos: Computing Disciplines

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.

Explain the concept of Information Technology;Definition and scope Information Technology.https://www.youtube.com/watch?v=Z0A7OMkYQf8

© 2020  Vedesh Kungebeharry. All rights reserved. 

Videos: Categories of Computers

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 an Syllabus, however , they do address the fundamental concepts in real world scenarios.

(Created for csec syllabus, but also applies to NCSE ICT)

Distinguish among the major types of computer systems in terms of processing speed, storage and portabilityMajor types:(a)Super Computers (for example, Cray).(b)Mainframes (for example,IBM zEnterprise System).(c)Desktop systems.(d)Mobile devices (for example, laptops, notebooks, netbooks, smartphones, tablets and game consoles).(e)Embedded devices (for example,special-purpose systems such as controllers in microwaves, car ignition systems, answering machines).Types of computers:https://www.youtube.com/watch?v=uD0acIhi8xE

What is a super computer:https://www.youtube.com/watch?v=utsi6h7IFPs

Using Supercomputers:https://www.youtube.com/watch?v=yvbSX–LOko

© 2020  Vedesh Kungebeharry. All rights reserved. 

Videos: The Major components of a computer system

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.

Explain the functions of the major hardware components of a computer system;Major  components:  input, central  processing unit,Primary memory   (RAM and ROM),secondary storage, output.(a)Secondary  storage devices:  hard disk,magnetic   tape, flash   drive, memorycard, and optical disks (CD, DVD and Blu-Ray).(b)Units  of storage:  bits,bytes,  kilobytes,megabytes, gigabytes, terabytesData Processing (IPOS) Cycle:https://www.youtube.com/watch?v=j0XOLp_PbgA

https://www.youtube.com/watch?v=CBf-jIn44X0 (Concise)

Ram and Rom: https://www.youtube.com/watch?v=XY18amKzOvA

https://www.youtube.com/watch?v=3Wo3W2atvJw (Better Visuals)

Storage: https://www.youtube.com/watch?v=OsEDJM9NuGA

© 2020  Vedesh Kungebeharry. All rights reserved. 

Stack Operations (Exercise)


After observing the code in this post (Stacks) , implement a stack with a maximum size of 5 elements using flowgorithm.

The program must continuously prompt the user for an option:

push -if the user enters push, prompt the user to enter an integer and push it onto the stack
pop -if the user enters pop, display the integer at the top of the stack and remove it
peek – If the user enters peek, display the integer at the top of the stack
exit – exits the program.

Ensure that the program works in all cases, e.g if the stack is full and and the user tries pushing another element, display an appropriate error message.

Updates to this post

2023-09-14 – Fixed broken link to stack code

© 2020  Vedesh Kungebeharry. All rights reserved. 

Properties of an ADT

Properties of an ADT

An ADT must possess the following characteristics:[1]

1. the facility to create a container to hold the data;

2. the facility to add a new element to the container;

3. the facility to remove/delete an element which satisfies some

criterion form the container;

4. the facility to find an element which satisfies some criterion within

the container;

5. the facility to destroy the container when it is no longer required.


[1] (Caribbean Examinations Council Computer Science Syllabus, 2015, p. 83)