ENG 213.1 · Computer Programming for Engineers
Our notes
2 min readWhat a computer is
A computer is an electronic machine that accepts data (input), processes it by following stored instructions (a program), stores data and results, and gives output. It works very fast and accurately but only does what the program says.
Parts of a computer system
| Part | Role | Examples |
|---|---|---|
| Input devices | bring data in | keyboard, mouse, sensors, scanners |
| Central processing unit (CPU) | control unit + arithmetic logic unit; runs instructions | Intel, AMD, ARM chips |
| Main memory (RAM) | holds the running program and its data; lost when power goes | 8 GB RAM |
| Storage | keeps files permanently | SSD, hard disk, flash drive, cloud |
| Output devices | show or send results | screen, printer, plotter, actuators |
| Software | programs | operating system, compilers, applications |
Hardware and software
- System software: operating systems (Windows, Linux, Android), compilers, utilities.
- Application software: spreadsheets, CAD packages, simulation tools, your own programs.
Data in a computer
Everything is stored as binary (0 and 1). 8 bits = 1 byte. Integers are stored exactly within a range; real numbers are stored in floating point with limited precision (about 7 significant digits for single precision, 15-16 for double). This matters for engineering accuracy.
How engineers use computing
| Use | Examples |
|---|---|
| Calculation | beam deflections, pipe flow, load flow in power systems |
| Design (CAD) | drawings, 3D models |
| Analysis and simulation | finite element stress analysis, computational fluid dynamics, circuit simulation |
| Data acquisition | logging temperatures and pressures in a plant or lab |
| Control | PLCs and microcontrollers running machines, robots |
| Optimisation | choosing the cheapest safe design |
| Documentation and communication | reports, spreadsheets, project scheduling |
Why engineers still write programs
Ready-made packages cannot do everything. A short program can repeat a calculation thousands of times, test many design options, process lab data, or solve an equation that has no neat formula. Fortran ("FORmula TRANslation", first released by IBM in 1957) was designed for exactly this kind of numerical work and is still used in weather forecasting, CFD and structural codes.
Exams usually ask
- Describe the components of a computer system.
- Discuss the uses of computers in engineering.
Common mistake
Thinking the computer "understands" the problem. It only follows instructions; a wrong formula in the program gives wrong answers very fast.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Computer
(opens en.wikipedia.org in a new tab)
Wikipedia, Computer, CC BY-SA 4.0 · licence
-
Computer hardware
(opens en.wikipedia.org in a new tab)
Wikipedia, Computer hardware, CC BY-SA 4.0 · licence
Watch
-
Best pick FORTRAN in 100 Seconds
3 min · ≈ 14 MB · about ₦8
(opens youtube.com in a new tab)
-
Introduction to FORTRAN Programming | FORTRAN Tutorial - 1
3 min · ≈ 14 MB · about ₦8
(opens youtube.com in a new tab)
-
The Remarkable Rise of Fortran: First Programming Language
3 min · ≈ 14 MB · about ₦8
(opens youtube.com in a new tab)
-
Why You MUST Learn FORTRAN in 2025
8 min · ≈ 36 MB · about ₦20
(opens youtube.com in a new tab)
-
The Untold Story of FORTRAN
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
-
Introduction to Fortran - Part 1
33 min · ≈ 149 MB · about ₦84
(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.