Title | Computer Programming Laboratory 1 |
---|---|
Course | Computer Programming |
Institution | Universitatea din Craiova |
Pages | 10 |
File Size | 258.9 KB |
File Type | |
Total Downloads | 85 |
Total Views | 156 |
C Compilation Model LAB 1 ...
Laboratory Module 1
C Compilation Model Purpose: − To highlight key features of the C Compilation model − To review C keywords and C Standard Library functions − To understand the flexibility of the translation processes, introduced by the options that can be invoked at compilation time − To see the usage of compilation directives
1 Preparation Before Lab 1.1 Theoretical aspects 1.1.1 Preparing programs for execution Preparing programs for execution requires three main steps: 1) Problem specification The main goal of this step is to specify exactly what the problem is and what the requirements for an acceptable solution. The problem specification must be precise, so it removes all ambiguity; complete, to consider all possibilities for input and specify the associated output; understandable, so that both the user and the system analyst must be able to understand the problem. Example: The computation of the sum of the first 1000 positive integers. 2) Design At this step, the algorithms that solves the problem needs to be written in pseudocode. This is a high-level, non-executable notation for design description. The characteristics of pseudocode are: • has a free syntax • uses a limited number of reserved words (keywords) each expressing: - an elementary action - a control structure Example: The pseudocode of the problem is: no...