math 10 12 comp & calculoator 2

Chembe Zimba Snr
60 followers
1 Video View·Feb 15, 2025
welcome to today's lesson we are still
continuing with our topic which is
computer and calculator but this time
around today we want to see how we can
now convert a flowchart to a suitable
since last time we are converting from a
super code to a flowchart
now we want to to the other way around
which is converting a flowchart to a
pseudo code so you already know what a
flowchart is and we already defined what
a pseudo code is but just for the sake
of those that are joining us for the
first time maybe let me just go through
one of these important ships here so
computer lesson is just based on these
important shape data on the board so
this shape here the auto-ship it simply
means that on store so when you are
starting a program this is where you
enter witness copy you also end up in
the similar shape then when we are
inputting something when you are
inputting something we always use this
program shipped even when you are
putting something we also use the
parallelogram shape here then we also
have an action box to simplify things
for the sake of your exams we just say
in the action box there whenever you see
a formula this is where we put a formula
and in the decision box that's why I
came to get to put the questions
so when you see if in the pseudocode
when it lands creating a project this is
where you say is okay so input their
formula here and also the success of
writing any flow chart is dependent on
an individual knowing the formula so the
first thing that you have to deal with
is not a formula of the particular thing
that you are dealing with for example if
you want to write a for a flow chart to
show how volume is calculated the first
thing is not a formula for volume once
you know the formula for volume then you
can easily construct a flow chart okay
having given that background let's just
now continue we go to the question that
we have so this question simply says
convert the following flow chart to a
pseudo code now a pseudo code has got a
specific language that
youth and a specific way of writing so
please let me demonstrate and explain a
few things on how it is supposed to be
done okay so here with the stacks
as you can see stacked there so she
stacks just trade the stacks then the
enter era here on the pseudocode we
finished we don't a straight symbol here
we finish on the future that's why we
rarity the symbol so instead of saying
entire era as we are going to say enter
radians so it also has it stacked in
stats like you indent a bit so it will
start enter radius okay when you asked
here the is on the flow chart here it
changes to the if when you're writing a
sugar also here it's a question if
radius is less than zero then okay so
now here if radius is less than zero so
here a same display error message so if
then display error message error message
display error message then they are
saying I don't know if we have enough
space would have continued each layer
and written era must be positive must be
positive then we go to the next one now
so he every time before you write a
formula now it's in an action so before
you write the formula always remember to
put the weight else so here is simply
same errors area so we are saying else
area is equal to this formula have been
given near else our area here is equal
to half x squared radius squared radius
x sine theta so you continue that site
we should design me filter make sure you
have enough space
continuing these sentences okay then
before you can display what you are
calculating there is always this funny
thing that is put and if okay and if me
that's when you say display display area
because that is what you are doing then
having done that is a stop so this stop
should be in the same line there stop
and you are done you have converted from
a flowchart to a pseudo code now you can
do a quick practice of this one you
simply erase this thing and try to
construct it by using this to prove if
you have done is the correct thing okay
so this is how simple it is computer
business paper to take questions like
once you understand the paper to take
questions
you can also easily do with it the paper
one tech question because they will just
need you to know the formula and
understand these four basic shapes and
you're a woman right you are a show
above the total seven max that comes in
your final exam that is - max paper one
and five max
Peppa - thank you for listening to this
lesson today - next time
