Questora

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

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 free

Course details from Courses for BSc. Physics - Physics.