Day 0 - The Computer and Algorithm
Day 0 - The Computer and Algorithm
Adu (Ogyam Ye
Berima)
64 BIT
RAM HARD DISK
ACTION PROCESSOR
8 GB 500 GB SDD
CORE I5 (CPU)
HOW COMPUTERS WORK
➢Reasons why your PC runs slow
➢1. If your RAM is small then your computer can’t hold a lot of instructions (Apps) at a time,
relatively. Therefore, an 8 GB RAM will perform better because your computer can work
with a maximum of about 8 GB of data at a time. Hence, a 2GB or 4 GB RAM will
perform worse.
➢2. similarly, when your computer is operating on a 64-bit core i7 processor. It would
perform much better than a 64-bit core i5 or less. However, core i5 processor is relatively
fast enough for you to enjoy your computer games and other stuffs.
➢Have you realized that when your computer storage gets full, then your PC begins to run
slow. Imagine you have a 1 TB HDD hard disk that is 98% full and you ask your computer
to play music for you. The computer would have to scoop through about 1 TB of information
to find you the app and music to play. That would take time.
➢NB: 1 TB is approximately 1.0 𝑥 1012 bytes of data.
GRAPHIC USER INTERFACE
(GUI)
➢The graphic user interface (GUI) is what we
commonly use today. In fact, almost all the
applications and operating systems you interact with
are graphical.
Data Data
Engineer scientist
Options
DevOps Artificial
Engineer Intelligence
engineer
Web
developer
SOFTWARE FOR THE COURSE
Visit our Telegram page to download and watch videos on
how to install and use the relevant software for the course:
Software for the course:
1. Python interpreter for windows and Mac
2. Visual studio code for windows and Mac
3. Pydriod3 for android phones and Pyto for iPhones
Writing out your algorithm helps you to plan your code and make it easier
for other developers to replicate your work in different programming
languages or improve upon what you have developed. Algorithms, reduces
errors in the code and makes life simpler.
QUESTION
Write a simple computer algorithm to that will demonstrate
how your software will take a complex number as an input
from the user and calculate the modulus.
NB: Use draw.io App to draw the flowchart. You can access
draw.io on their website or download and install. Click
here to use draw.io
SOLUTION Step 1
ESSAY FORM
Step1: start program.
Step 2
Step3: Pick the real part and the imaginary part. Example: real = 3, and img = 4.
Step 4
Step4: calculate the modulus using the formula
𝑧 = 𝑟𝑒𝑎𝑙 2 + 𝑖𝑚𝑔2 = 32 + 42 = 5
Step 5
Terminal Decision
Process
Use for starting or For making
Use when performing Input / Output
terminating a True/False
an action or process.
program. decisions.
FLOWCHART
Step1: Start program.