math 10-12 computer & calculator 1

Chembe Zimba Snr
60 followers
Feb 15, 2025
syllabus D, Examination council of Zambia
welcome to today's lesson so uh we are
looking at mathematics
uh for grade 10 to grow 12 including gce
and the topic that we are looking at is
computer and calculator
so the specific objective we are trying
to achieve
in this lesson today is on how to
convert a pseudo chord
to a flow chart so before we can dive
into solving the question
just a quick reminder of the four basic
things that you have to know about
computer and calculator so
you already know what a computer is is
simply any electronic
device that can be used to input data
that can be used for processing data it
can be used for storing data
and so on and so forth then you also
have to remember that
they are in a computer we have what we
call the inputs the things that you put
into the computer
then we also have the things that we
call the outputs
the things that the computer produces
after processing the data
for example after you input a song into
the laptop
then the laptop is going to produce
sound so sound is an example of
outputs so okay now to successively
solve questions that come
in the exam in your exams every year it
doesn't miss
we have to always bear in mind the
meaning of the four basic symbols
under computer and calculator so the
first symbol is the oval shape
which simply means start or stop so when
you're starting
you can start with this one and stopping
you can also stop with this one so
the other names for start and stop is
the uh begin
and the end then we also have an input
so when you're trying to put in to show
the inputs this is where you put them
in this is a parallelogram then when
you're also trying to write
the outputs the things that have been
displayed by the computer
you have to write them in this box as
well another box
okay you see how we can properly apply
these things
then we have the uh the the
the rectangle there which is an action
box
so in the action box always remember
this is where you have to put
a formula it's that simple then we have
a decision box
so in the decision box there that is
where we put the if
conditions so it's a question so a
question on the pseudocode when writing
it in here
it changes into a condition okay so you
will see how these things
will be done so like we are saying we
are saying now a flowchart is simply a
graphical
representation of a problem uh solving
strategy
that is what we call a flowchart now a
flowchart
when we connect these symbols
appropriately using
some arrows then it forms the water and
flowchart
okay so now according to the question
that we are trying to practice now we're
converting
a pseudocode to a flowchart now we have
said
a flowchart is a graphical
representation of a problem
solving strategy now we also have to
understand
what a sugarcoat is so a pseudocode is
simply
a step-by-step step-by-step set of
instructions
that can be used to to program a code
or in simpler language a step-by-step
instruction that can be used
to perform an action for example if you
are trying to show someone on how to
turn on a tv
you tell them okay plug in get the
remote
press the on button sit back relax at
least if people follow those
instructions
they will be able to successively turn
on the tv and watch
so that is just an example scenario of
what a supercode is
okay now let's look at a pseudocode that
has been written on the board here and
see how it can be translated into
a flowchart now this is one of the
questions that comes in the exam
and it usually has quite a lot of marks
which you can't afford to miss so as
long as you follow us
understand this you will never fail any
question in the exam
okay so here we have simple stats
we have said this one means it starts
now here
the question that is supposed to be here
is it you are supposed to commit
this pseudo code you convert it into a
rt a flowchart
so now already things are as
straightforward as that
this is the start that we have so you
are going to write
our stats so in the start here so let me
just try to decide so start
then we put the over there then the next
thing they are saying
enter radius now everything that you are
entering into something it is called an
input and the input box is this one
so you are going to connect using an
arrow
then we will do the the input so draw a
parallelogram
nicely it shouldn't be questionable
everyone should be able to see
that it is a paragraph so in here now
here on the pseudocode you write the
four words like that radius but when it
comes to here you are going to write
it only the symbols so we are going to
say
enter okay
then you have to go to the next now the
next instruction now says
if okay so here they are saying if
radius is less than zero so now
the if when it comes to the so the
moment you see if
then you know it's supposed to go into
the decision box now
then if it changes into ease as you are
putting it in there
so when you draw the diamond shape there
that's diamond shape okay which looks
like that
so in here that if it changes into is
then is radius less than zero so
is so here if but so easy error
less than zero okay then there are two
possible
possibilities it's a question this is
the question so is radius less than zero
so there are two questions they can
either be that answer or that answer
so now here they're saying radius less
than zero
then display error message and re-enter
positive value
so meaning if yes if
no so if it is less than zero
then you have to display now the display
symbol
is this one so you have to display
so here now they're saying then display
error message
so here you are displaying simply the
error
message okay display error message and
re-enterpose device so re-enter
where you are entering from the arrow is
here so meaning the first array entered
was wrong so you have to re-enter that
is where
this loop now goes back so you re-enter
you start afresh
okay so having done that let's go to the
next one
now they're saying else enter height so
after this has happened you re-enter the
correct
error now they are saying you enter
height so for entering also
it is a parallelogram so we draw a very
nice
program there so here also they are
saying we enter
height so we enter the height you put
these things nicely as it appears there
if you want you can put the way display
error message but the fact that you have
put it in the display it is already
displayed error message so you enter the
height as they have said then
again there's an if so the moment you
see if then you know you have to make a
decision
so the only place where you can make a
decision
from is in the decision box
which is the diamond shape okay so you
ask yourself is the height
less than zero this is a question so of
course there should be a yes
and a no so now here it's a yes
so here's the thing if if height is less
than zero then display error
message under enter positive height so
also here we are displaying the error
message so display error message so this
is the
error message
you put it as it appears there then they
are saying and they re-enter positive
height so you haven't done they're
the correct idea then here it says
errors
volume is equal to this one so the
moment you see a formula then you know
that you have to apply
the action box which is a rectangle so
the moment you see that one
you put in this one okay so this
is where we're going to say area and
like i said
on the pseudocode we find the words but
here we just find it the same way so
this one will be area
half multiplied by r squared multiplied
by
height that is what you're writing here
okay
so we continue we continue now
the other thing says end if display
volume so display already we already
know what the
display is it is this
like that so when you display now so you
write here now
you can write the way display volume or
just write volumes of display volume and
then stop
so from there you are expected to stop
so now the stop pattern is the over so
we have successively converted from this
pseudobot
into a flowchart so this is the
flowchart and that is the pseudocode
then in our next lesson we are going to
look at on how to convert noun
from a flowchart into the pseudocode
thank you for listening if there are any
questions please
feel free to contact us these are
interactive
lessons
