PHY 261 — PROGRAMMING WITH PASCAL I
BSc BSc Physics · Kwame Nkrumah University of Science and Technology
Introduction to computers. Types of high level programming. Languages. Versions of PASCAL. Structure of PASCAL program. Reserved words. Identifiers. Numbers and strings. Constants and variables. Expressions and statements. Integer - type data. Real - type data. Char - type data.. Boolean - type data. Standard constants. Standard functions. Enumerated - type data. Subrange - type data. Utilizing user-defined data. Read and ReadIn statements. Write and WriteIn statements. The EO/n and Eof functions. Formatted output. Declaring string types and variable. String manipulations. The FOR structure. The WHILE - DO structure. The REPEAT - UNTIL structure. Nested control structures. The IF structure. The GOTO statement. Procedures - nested procedures. Parameters - value and reference. Functions. Recursion. The TURBO PASCAL editor. Planning a PASCAL program. Writing a PASCAL program. Entering the program into the computer. Compiling and running.
- Credits
- 3
- Level
- Level 200
Other courses on this programme
- FC 281 — FRENCH FOR COMMUNICATION III
- FC 282 — FRENCH FOR COMMUNICATION IV
- PHY 251 — ELECTRONICS I
- PHY 252 — ELECTRONICS II
- PHY 253 — CLASSICAL MECHANICS I
- PHY 254 — CLASSICAL MECHANICS II
- PHY 255 — THERMODYNAMICS
- PHY 256 — E.M. THEORY
- PHY 259 — MATHEMATICS FOR PHYSICS III
- PHY 260 — MATHEMATICS FOR PHYSICS IV
- PHY 262 — PROGRAMING WITH PASCAL II
- PHY 263 — NUCLEAR PHYSICS
Practising PHY 261 with Questora
Upload your own slides, notes and past papers for PHY 261 and Questora builds mock exams, practice questions and a revision plan from them.
Start freeCourse details from Courses for BSc. Physics - Physics.