CornellNotes Week 1
CornellNotes Week 1
Instructions: You must read the material and create an outline of the topics in your OWN words. Do not copy
the text from the tutorials into your notes. Make sure your outline contains notes for each subsection of the
reading assignment. Thoroughly cover each topic to show you have a firm understanding of the programming
concept or construct.
Ques NOTES:
BGEIN
num = INPUT: "Enter a number"
IF num MOD 2 == 0
print "Even Number"
ELSE
print "Odd Number"
END
Week: Week1__________ Name: Theophilus Amaye______________
Assignment: Computational thinking skills Class: _CS105_Intro to Programming____
Page 2 of 6 Date: 28-October-2023__________ __
Ques NOTES:
Why Use Pseudocode? Apart from serving as a blueprint for actual code, pseudocode can
provide the following benefits:
It fosters team work by making code readable to other
professionals who may not have knowledge of the
programming language being used.
Being a blueprint for actual code, it makes coding simpler
and faster.
It helps a person find bugs more quickly and easily.
How to write a Using the same logic as a programming code, you can create a
pseudocode pseudocode using English language by doing the following:
Ques NOTES:
Statements Assignment Operator: =, <- or :=
Comparison Operator: == , !=, <, >, <= , and >=
Arithmetic Operator: +,-, *, /, MOD(%)
Logical Operator: AND, NOT and OR
Sum, Product: ? ?
Special Keyword
1. START: To begin the pseudocode.
2. INPUT : Take input from the user.
3. PRINT: To print the output on the screen.
4. READ/GET: Input format while reading data from the file.
5. SET, INIT: Initialize a value.
6. INCREMENT, BUMP: Increase the value of the variable,
equivalent to a++.
7. DECREMENT: Decrease the value of the variable,
equivalent to a--.
8. COMPUTE, CALCULATE, DETERMINE: To calculate the
expression result.
Write the FizzBuzz FizzBuzz algorithm is used to write numbers in a simpler form.
Algorithm Using 1-30 is written in a new line. Multiple of 3 is written as Fizz,
Pseudocode multiple of 5 is written as Buzz and for numbers with multiples of
both 3 and 5 is written as FizzBuzz.
Ques NOTES:
represented using a rectangular box and decisions are
represented by a diamond.
The flow process chart, introduced by Frank and Lillian Gilbreth
in 1921, marked the early structured method for documenting
process flow. These tools quickly became part of industrial
engineering curricula. In the 1930s, Allan H. Mogensen started
teaching business professionals industrial engineering tools at his
Work Simplification Conferences. Later, these methods influenced
Procter and Gamble and other industries. The flowchart's
application evolved into describing computer algorithms, though
its popularity declined in the 1970s with the advent of interactive
computer terminals and high-level programming languages.
Pseudo-code and modern techniques like UML activity diagrams
have since become the norm for algorithm description in the 21st
century, expanding upon the original concept of the flowchart.
Types of Flowcharts Flowcharts can be categorized into various types based on the
aspects they represent within a system:
1. Document Flowcharts: These depict the controls governing
the movement of documents through a system.
2. Data Flowcharts: These illustrate the controls regulating the
flow of data within a system.
3. System Flowcharts: These showcase the controls
established at a physical or resource level within a system.
4. Program Flowcharts: These reveal the controls existing
within a program as part of a broader system.
Ques NOTES:
Represent file
Ques NOTES:
particularly in Visual Programming Languages.