Vous êtes sur la page 1sur 1

UTP/Sep 2014/FAT 0015 Fundamental of Programming I Week4 Lab 2

Page 1 of 1

Learning Outcomes
Upon completion of this lab session, learners will be able to:
1. grasp the steps in the software development method,
2. solve a given problem that involves sequence, selection and repetition
structure by applying pseudocode technique, and
3. verify the pseudocode by performing desk-check technique
Keywords
Software Development Method, Algorithm, Pseudocode, Desk-checking

Activity #1
You have been asked to design a computer program that receives students
marks one by one from keyboard. Then the program calculates the number of
pass and fail students, the valid marks must be between 0 and 100. Any
marks less than or equal to 65 considered as fail, pass otherwise. Display
appropriate message for invalid inputs. Then, the program will determine and
display the average. Describe the algorithm using both pseudocode and
flowchart, perform desk-checking.
Activity #2
Write a Pascal program that receives a mark and state whether or not it is a
pass or a failure. (Note: no if-else need to be used)

Vous aimerez peut-être aussi