CSC 180.1 · Introduction to Computer Science and BASIC Programming
Our notes
2 min readSteps in programming (the program development cycle)
- Define the problem: what are the inputs, outputs and rules?
- Analyse and design: plan the method; write an algorithm, flowchart or pseudocode.
- Code: write the program in a language (BASIC).
- Test and debug: run with test data whose answers you know; fix syntax, run-time and logic errors.
- Document: comments (REM lines), a user guide, and a description of the method.
- Maintain: correct and improve the program as needs change.
Choosing test data
- Normal data: typical values (a score of 65).
- Boundary data: edges of ranges (49, 50, 70).
- Wrong data: values that should be rejected (−5, 120, letters).
A program is only trusted when it gives correct results for all three.
Worked example
A grading program uses "IF S > 70 THEN A". Testing S = 70 shows it gives B, not A: a boundary error. The fix is S >= 70.
Good programming practice
- Meaningful names (TOTAL, not T9).
- Comments explaining each section.
- Indentation inside loops and decisions.
- One task per subroutine.
- Avoid unnecessary GOTOs; use structured loops.
- Check input (reject impossible values).
Applications of computers
| Area | Examples |
|---|---|
| Education | e-learning, computer-based tests (JAMB UTME), school records, result processing |
| Banking and commerce | ATMs, POS terminals, mobile banking, online shopping |
| Health | patient records, diagnosis equipment, scans |
| Engineering and science | design (CAD), simulation, weather forecasting, research |
| Government | elections (voter registration and accreditation), national identity numbers, tax |
| Communication and media | email, social media, publishing, broadcasting |
| Industry | robots, process control, stock control |
| Hospitality and tourism | hotel reservations, booking systems, point-of-sale |
| Agriculture | weather and soil data, farm records, market prices |
Effects of computers on society
Positive: speed, accuracy, new jobs and skills, easier communication. Negative: job loss in some routine work, cybercrime and fraud, privacy risks, addiction, health effects of long screen use.
Exams usually ask
- State and explain the stages of program development.
- What is debugging? Name the kinds of errors and how to find them.
- Discuss the applications of computers in any three areas of Nigerian life.
Common mistake
Starting to type code before planning. A few minutes on an algorithm or flowchart saves hours of debugging.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Introduction to Computer Science, 1.2 Computer Science across the Disciplines
(opens openstax.org in a new tab)
OpenStax, Introduction to Computer Science, 1.2 Computer Science across the Disciplines, CC BY-NC-SA 4.0 · licence
-
Computer programming
(opens en.wikipedia.org in a new tab)
Wikipedia, Computer programming, CC BY-SA 4.0 · licence
-
Software development process
(opens en.wikipedia.org in a new tab)
Wikipedia, Software development process, CC BY-SA 4.0 · licence
-
Bottom-up and top-down approaches
(opens en.wikipedia.org in a new tab)
Wikipedia, Bottom-up and top-down approaches, CC BY-SA 4.0 · licence
-
NOUN CIT 132: Programming in BASIC
NOUN course book (PDF, about 0.8 MB). The whole BASIC programming course.
(opens nou.edu.ng in a new tab)
-
NOUN CIT 108: Problem Solving Strategies
NOUN course book (PDF, about 3.8 MB). Algorithms, flowcharts and solving problems with programs.
(opens nou.edu.ng in a new tab)
-
OpenStax, Introduction to Computer Science (whole free textbook)
The whole book, free to read online or download as a PDF (the PDF is large: Wi-Fi).
(opens openstax.org in a new tab)
OpenStax, OpenStax, Introduction to Computer Science (whole free textbook), CC BY-NC-SA 4.0 · licence
Watch
-
Problem Solving In Programming | Problem Solving Skills For Programming | Simplilearn
8 min · ≈ 36 MB · about ₦20
(opens youtube.com in a new tab)
-
The KEY To Thinking Like a Programmer (Fix This Or Keep Struggling)
11 min · ≈ 50 MB · about ₦28
(opens youtube.com in a new tab)
-
Problem Solving Techniques - For Programming Problems & Interviews
18 min · ≈ 81 MB · about ₦45
(opens youtube.com in a new tab)
-
How To Think Like A Programmer - Learn To Solve Problems!
6 min · ≈ 27 MB · about ₦15
(opens youtube.com in a new tab)
-
Lecture 1: Introduction to CS and Programming Using Python
1 h 4 min · ≈ 288 MB · about ₦162
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.