Search for notes by fellow students, in your own course and all over the country.
Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.
Document Preview
Extracts from the notes are below, to see the PDF you'll receive please use the links above
Chapter 1
Intro to Programming & Flowcharts
This Passage provides insights into programming languages, flow
charts,, and pseudocode
...
He also provides an example problem and the
solution he comes up with in pseudocode
...
The flowchart in this
passage shows the process of a program, including the various
components that are used to create it
...
The next
block is a simple rectangle, which shows a process
...
The next
block is an arrow, which connects the previous two blocks
...
The code block that starts
...
After that,
the program will end
...
We will also learn about programming languages and why
do we use them
...
This will be our
flow whenever we will solve any problem
...
Now we explain, what
is a flowchart is a diagrammatic approach of that approach known as
flow chart
...
He says that from where a program is starting we have
a component called terminator
...
Next block is a simple rectangle, which
shows a process
...
He says the pseudocode as a whole is a generic way of
representing logic
...
We use parallelogram to show the
input/output of the program
...
If a < b print `` YES '' else print `` NO '' and its done
Simple You just have to write in English what you are thinking and it is
called pseudocode
...
We have to check a condition that whether N
is ODD or EVEN , so we will make one block for this condition Here is
the decision making block , Is N % 2 = 0 ? We will get 2 outputs , YES or
NO If output is YES, then it is an EVEN number , so I printed ODD Else, I
will print ODD Then I made this end block and ended this program
something like this This is the flowchart for EVEN , ODD Got it right ?
We have to print something and then increment too You have to Print
and then increase the printed number too You can see here , we
printed and then increased the number by 1 But we don’t know how to
do it How we will increase again and again Let 's rub it You know that
we have to start from 1 and print till 5 So if I give you a number which
starts from 1 to 5, will it work ? You are like , yes , this is what we
needed So I took a number =1 This is not a input , it is a process , so I
wrote it inside rectangular block
...
The catch is , 1 and N are
inclusive here in the answer should be 15
...
We know that we
have to start with num=1 and increment it till N I know N = 5 , Num =1 ,
and sum =0 in the beginning
...
You will get your homework after this
...
it?? Programming languages are a way to communicate with computer,
we use it to create programs that will run on the computer
...
WE can also use them to
create very complicated programs
...
In this chapter, C and Python Now let's talk about what is
it?? Programming language is just a set of instructions that tells the
computer how to do something
...
WE can also write these
instructions in different languages, so everyone can understand them
...
Every
language has its own
...
Every language has its own set of rules, which
can be quite different from one another
...
Flowchart shows how to add conditions, loops, input/output,
processing, processing and start/end
...
We learnt about flowcharts in this
lecture, pseudocode and took an overview of programming languages
...