Search engines

A search engine is website application that allows users to search for information on the world wide web.

Search engines are mainly accessed by their website address. When a user visits a search engine’s website address, they can input their search criteria (also known as a search query) so that the search engine may produce a list of website pages which contain information related to the search criteria.

e.g, a user may visit http://www.google.com and proceed to input the search criteria funny videos :

user enters the search query “funny videos”

Now they can click on the search button –

Click on the search button to perform the search.

And now you can view and visit web pages from various websites which contain related results:

search results

© 2019  Vedesh Kungebeharry. All rights reserved. 

Implementing Incomplete functions – Programming practise (Part 3)

Download this file: ProgrammingPractise 3 – Commissions and Rewards.fprg

Be sure to read the comments at the start of each function to get an idea of what needs to be implemented. I’ll be happy to answer any questions that you have in class.

See this post if for some detail on how to use the above file: https://islandclass.wordpress.com/2019/05/16/implementing-incomplete-functions-programming-practise/

© 2019  Vedesh Kungebeharry. All rights reserved.  

A Simple Game! – Part 5

In this lesson, we create a variable called score and update it when a collision occurs. The code occurs in our “Play game” broadcast while moving the ship.

We add the following code:

So that the code becomes:

We add a variable called Still playing to keep track of our current game state:

And the score is only reset during initialization when “StillPlaying” is false.

In the case that the ship is missed after movement was completed,, we simply set “StillPlaying” to false and our score is reset during initialization:

That’s it for our main logic!

Here’s the full code for the spaceship:


Here’s the code for the planet:

A full implementation with all the bells and whistles can be found here:

Planet Destroyer

© 2019  Vedesh Kungebeharry. All rights reserved.  

Implementing Incomplete functions – Programming practise (part 1 and part 2)

Here’s the flowgorithm files that you can use to practise programming:

ProgrammingPractise 1 – Demonstration and Tutorial.fprg

ProgrammingPractise 2 – Circles.fprg

Here’s a video from a previous class demonstrating how to use the practise files above:

Here’s the flowgorithm file which demonstrates the “functions” GreetUser() and Sum() :

Function_Demonstration.fprg

and, as a bonus, the pascal implementation of both functions:

Function_Demonstration.pas

© 2019  Vedesh Kungebeharry. All rights reserved.  

A simple Game! – Part 4

In this part , we update our ship’s initialization to return to a static point after motion as well as add our planet which appears at a random position when the game starts.

First, return our spaceship to it’s starting position:

Next, Add the planet sprite:

And now we set up the initialization to choose a random starting position:

(ENSURE THAT WE ADD THE CODE BLOCK TO THE PLANET’S SPRITE!!!)

In the next part, we’ll update the score on a collision , and reset the score to 0 when a miss occurs.

Next: A Simple Game! – Part 5

© 2019  Vedesh Kungebeharry. All rights reserved.  

A simple Game! – Part 3

In this part, we move our spaceship until it touches the edge.

We will move our spaceship 3 units at a time in the direction it’s facing until it touches the edge of the screen.

First setup the constraints for moving until the edge is touched. We accomplish this using a looping construct and a sensing block:

Now we add the following code block to move the ship:

It’s setup is shown here:

It is important to note that you don’t need to understand how the codeblock above works, only that it moves the ship 3 units in the direction it’s pointing!

Our final scenario is shown below:

Next: A simple Game! – Part 4

© 2019  Vedesh Kungebeharry. All rights reserved.  

A simple Game! – Part 2

In this section, we start by getting setting up the initial state of our game.

We need a variable to store the bearing, and here we set the bearing to 0 and point the spaceship vertically:

Ensure that your rocketship’s sprite is selected so that the code is applied to the rocketship.

Note the use of the broadcast system – we use this to achieve a modular approach.

Next, we setup the code to Accept the bearing and turn the ship:

Now, when we click on the green flag, we’re able to prompt the user to enter a bearing and turn our rocketship!

The full code is shown below:

Next: A simple Game! – Part 3

© 2019  Vedesh Kungebeharry. All rights reserved.  


A simple game!

Update and Video (2021 Feb 9th)

I’ve produced a video on this tutorial , the most notable difference is that the sprite was rotated to simplify movement. This means that the block below was able to be replaced by a simple move block.

The older tutorial is below:

Introduction

In this tutorial, we’ll be developing a simple game from beginning to end.   We’re going to go through all the many, many subtasks that goes into developing our game.

This project is a problem solving one.

In this development project, our problem statement is represented by the task at hand.

The task

Create a simple game using scratch.  The player is prompted to enter a bearing for a spaceship which then adjusts its direction and travels forward in that direction. The objective of the game is to hit a planet which is subsequently destroyed,  If the player is successful, increment his score, otherwise the game ends.

Part 1 – Setting up the sprite

First, I’m  going to create my scratch project. And name it “Planet Destroyer – Lesson Tutorial”:



 Now, we replace our sprite with one more suited to look like a rocket.

First delete the default sprite by clicking the x on the sprite.

Next choose a sprite using the “Choose a sprite” button

Search for “Rocket” and select the rocketship.


Now we have a rocketship added to our project.



My rocketship  is taking up a lot of space, so let’s reduce it to about 30%:

And we’re done setting up our Sprite!

Next: A simple Game! – Part 2
© 2019  Vedesh Kungebeharry. All rights reserved. 

Careers in ICT

Software engineer

A person involved in all aspects of software creation and documentation. Software creation includes  Development , Maintenance and testing.  Documentation involves instructions (written documents and videos) on how to use the specific software.

Additional Context:

A software engineer is a team member mainly responsible for designing , creating and testing software based on requirements that were documented about a real world system.  E.g The engineer(s) may be needed to build an online banking system for a bank with very specific requirements of how the website should operate and what it allows it’s users to do.

Software engineers also perform the duties of system analysts also, meaning that they are involved in determining requirements for documentation based on client requests and observing the existing system.

They may also be involved in the programming for the system, but this is not always the case.

Programmer

a person who writes computer programs as part of a team or as an individual.

Additional Context:

A programmer is a team member mainly responsible for writing program code to develop software based on the specifications that are determined from the system requirements. E.g the programmer may have to write code to facilitate banking transactions on the website.

Computer technician

A computer technician is an individual who identifies, troubleshoots and resolves computer problems. Computer technicians possess skilled knowledge, hands-on experience and different tools to repair and maintain computer hardware, software and network/Internet issues. A computer technician is also known as a PC technician or PC repair technician.[1]

Additional Context:

A team member that is mainly responsible for maintaining computer hardware, installing software updates and repairing computer systems. The technician does not design or create or design software websites or networks, but keeps the organization running by maintaining computer systems and networks.

Web designer

Designs the overall look and layout of a website.

 Additional Context:

A web designer is a team member responsible for working with a client to determine the requirements of a website in terms of how it looks and it’s functionality. The web designer then passes the design requirements to a web developer who determines the technical specifications for the website and in turn creates the website.  A web designer can also be a web developer.

Summary

CareerDescriptionAdditional Context
Software EngineerA person involved in all aspects of software creation and documentation, including development, maintenance, and testing.A software engineer is responsible for designing, creating, and testing software based on documented requirements. They may also be involved in determining system requirements and performing programming tasks.
ProgrammerA person who writes computer programs as part of a team or individually.A programmer is responsible for writing program code to develop software based on specifications determined from system requirements.
Computer TechnicianAn individual who identifies, troubleshoots, and resolves computer problems.A computer technician is responsible for maintaining computer hardware, installing software updates, and repairing computer systems. They do not design or create software, websites, or networks, but keep the organization running by maintaining computer systems and networks.
Web DesignerDesigns the overall look and layout of a website.A web designer is responsible for working with a client to determine the requirements of a website in terms of appearance and functionality. They pass the design requirements to a web developer, who determines the technical specifications for the website and creates the website. A web designer may also be a web developer.

UPDATES

2022 – 9 – 11 : Added additional context for each of the four disciplines.

2023- 1 – 29 : Added summary (Same information formatted as a table)


© 2019  Vedesh Kungebeharry. All rights reserved.


[1] https://www.techopedia.com/definition/13420/computer-technician