Professional Documents
Culture Documents
Assignment 2
Assignment 2
Automation is the key to progress. Only by automating the tedious tasks humans see
as redundant are we able to focus more on our more abstract thoughts and work to make
them a reality. Humans have used automation in the ways of taking advantage of animals’
strength in the primitive past (e.g. using oxen to plough fields, donkeys to carry heavy
burdens etc.), and later moved on to creating simple machinery (such as toasters, blenders,
etc.). In the modern day humans now use sophisticated computers and specialised
languages.
However, no matter how sophisticated the tools are, the core of automation remains
the same: Algorithms. From the most basic task of breathing to the more difficult task of
sending astronauts to space, each and every action we take can be expressed as an
algorithm. We have four ways of expressing algorithms: Natural language, step-form,
pseudocode and flowcharts. Each of these ways of expression are closer to the language of
computers than the last. In this assignment, we will be focusing on expressing the two
problems we were given through the expression ways of step-form and pseudocode.
STEP-BY-STEP ALGORITHMS:
In the first problem, we were assigned to make an algorithm that would automate the
process of filling a car with petrol and express this algorithm step by step. The algorithm that
we have come up with is as follows:
With this algorithm, we have managed to automate the process so that there doesn’t
need to be any workers stationed at the pumps to help customers nor does the customer
need to do the pouring themselves. A lot of countries have systems in which the customer
does the pouring of the petrol, in order to save money by having less workers, and it is
obvious that an algorithm such as this will be the next step to ensure the customers’
satisfaction and comfort.