0% found this document useful (0 votes)
12 views30 pages

Gey 201

The document outlines the course objectives and grading structure for CSC 201, Computer Programming I, focusing on problem solving, algorithm development, and programming in Python. It explains the nature of computers, the importance of high-level programming languages, and the programming process, including algorithm design and error types. Key characteristics of algorithms and desirable program traits are also highlighted.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views30 pages

Gey 201

The document outlines the course objectives and grading structure for CSC 201, Computer Programming I, focusing on problem solving, algorithm development, and programming in Python. It explains the nature of computers, the importance of high-level programming languages, and the programming process, including algorithm design and error types. Key characteristics of algorithms and desirable program traits are also highlighted.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 30

CSC 201

Computer Programming I

Course Lecturer:
Mr. I. H. Ibrahim
([email protected])

Department of Computer Science, MAU YOLA


2025
Course Objectives
• This course will provide students with a sound
background on problem solving methods and
algorithm development, designing, coding,
debugging and documenting programs using
techniques of a good programming language
style, programming language and programming
algorithm development. The programming
language to be used in teaching this course is
Python.

2
Course Grading

• Coursework: 30%
Practical: 30%
Starting Date: Due Date:

• Exam: 70%
Mode: Objective and subjective
Date: Will be communicated later

3
Introduction to Computer
• A computer is an amazingly fast but are not
capable of independent thought or creativity.
• A computer can do anything you tell it (within
reason), but it does exactly what it’s told nothing
more and nothing less.
• Computers don’t understand any reasonable
human language they don’t speak English either.
• Computers understand a language variously
known as computer language or machine
language.
4
• It is possible but extremely difficult for humans
to speak machine language.
• Therefore, computers and humans have agreed
to sort of meet in the middle, using intermediate
languages such as Python, C++, java, Fortran,
Pascal and so on.
• Humans can speak Python (sort of), and C++ is
converted into machine language for the
computer to understand.

5
What is Computer ?
A computer is an electronic machine which
receive input, process it, store it and produce
output according to given instruction.
What is Computer Science?
Computer Science is a discipline that studies the
theory, design and applications of computational
systems.
Computational Systems
• Hardware aspect
• Software aspect
• Application aspect
6
7
grammar

8
(1)

9
The shortcomings of the machine language are that:
 Coding in machine language was a very tedious and
boring job.
 Machine language was not user-friendly.
 Debugging any set of codes is a very difficult task. 10
The disadvantages of assembly language are that:
 It is specific to particular machines.
 It requires a translator called an assembler.
11
12
13
14
15
Some Advantages of High-Level Language:
 It is more user friendly, that is, easy to learn and
write.
 It is very portable, that is, it can be used on almost
any computer.
 It saves much time and effort when used
compared to any other programming level
language.
 Codes written in this language can easily be
debugged.

16
Features of Programming Languages
There are some conventional features which a programming
language must possess, these features are:
 It must have syntactic rules for forming statements.
 It must have a vocabulary that consists of letters of the
alphabet.
 It must have a language structure, which consists of
keywords, expressions and statements.
 It may require a translator before it can be understood
by a computer.
 Programming languages are written and processed by
the computer for the purpose of communicating data
between the human being and the computer.
17
18
19
20
21
22
23
24
Program Design Process

 Problem Solving Phase


Creates an algorithm that solves the problem
 Implementation (Coding) Phase
Translates the algorithm into a programming
language
What is Algorithm ?
Algorithm is the effective method to obtain step by step
solution of problems. Knowledge of algorithm forms the
foundation of study programming languages.
25
Characteristics of Algorithm
Every algorithm must satisfy the following criteria:
Input
Output
Definiteness
Finiteness
Effectiveness
Designing a Program
Aim of a particular program is to obtain solution to a
given problem.
26
We can design a program by going through the following
first four major steps:
 Analyze the program.
 Design a solution/program
 Code/Enter the program
 Test the program
 Evaluate the solution
 Use of procedures
 Choice of variable names
 Documentation of program
 Debugging program
27
Some Desirable Characteristics of Program
 Integrity: Refer to the accuracy of the program.
 Clarity: Refer to the overall readability of the program,
with emphasis on its underlying logic.
 Simplicity: The clarity and accuracy of the program are
usually enhanced by keeping the things as simple as
possible, consistent with the overall program objectives.
 Efficiency: It is concerned with the execution speed and
efficient memory utilization.
 Modularity: Many program can be decomposed into an
independent procedures or modules.
 Generality: Program must be as general as possible.
28
Errors
 Several different kinds of problems can occur in
software particularly during program development.
 From the user’s point of view, anything that goes
away when interacting with a computer is often
called a computer error.
 A computer follows the commands we give and
operates on the data we provide.
 If our programs are wrong or our data are
inaccurate, then we can not expect the results to be
correct.

29
Types of Error
You will encounter three kinds of errors as you
develop program:
• Syntax error: Occur when the code violates
programming language’s syntax rules.
• Compile - time error: This is the error identified
during compilation process.
• Runtime error: It occur during execution of the
code.
• Logical error: Occur when the code executes
without errors but produces incorrect results.
30

You might also like