Sie sind auf Seite 1von 3

BEJ10102 Computer Programming

Semester 1, Session 20202021

LAB SHEET

Lab L01: Software Development Method

Prepared by:

Pn. Zarina Tukiran

General Instruction(s):
1. Download learning materials from a folder;
Lab_L01_LearnFromPracticeSection to learn about the first
three steps of Software Development Method (SDM).
2. Then, solve the problem(s) in Problem Solving section.

Learning Outcomes(s):
At the end of this lab activities, the students should be able to:
i. understand the first three steps of SDM,
ii. identify the requirement specifications of the given problem
description,
iii. analyse the data needed in prior to solve the given problem,
iv. design the solution of the given problem using tools; pseudocode
and/or flowchart, and
v. demonstrate the ability to solve the given problem by applying the
first three steps of SDM.
BEJ10102 Computer Programming
Semester 1, Session 20202021
Lab Sheet L01: Software Development Method (SDM)
Prepared by Zarina Tukiran
Page 1

PRACTICE SECTION
Instruction: Download and learn the learning materials for this section as provided in the folder;
Lab_L01_LearnFromPracticeSection.

Practice 1: The first three steps of SDM for the output in Figure 1.

Welcome to Faculty of Electrical and Electronic Engineering!

Figure 1: Program output of Practice 1

Practice 2: The first three steps of SDM for the output in Figure 2.
Enter an alphabet:
B

Figure 2: Program output of Practice 2

Practice 3: The first three steps of SDM for the output in Figure 3.

Enter your email:


zarin@uthm.edu.my

Hi zarin@uthm.edu.my! Please check your email for activation.

Figure 3: Program output of Practice 3

Practice 4: The first three steps of SDM for the output in Figure 4.

Enter first number:


1
Enter second number:
3

The total is 4

Figure 4: Program output of Practice 4

Pn Zarina Tukiran, Dr Tasiransurini Ab Rahman, Dr Radzi Ambar,


Pn Nor’aisah Sudin, En Mohd Helmy Abd Wahab, Dr Chew Chang Choon
BEJ10102 Computer Programming
Semester 1, Session 20202021
Lab Sheet L01: Software Development Method (SDM)
Prepared by Zarina Tukiran
Page 2

PROBLEM SOLVING SECTION


Instruction: You are required to work in a group of two. Answer ONE question only.

PROBLEM SOLVING 1
Provide ONLY the first three steps of SDM for the following description.
Develop a C++ program that able to obtain the correct value of m. Use equation (1) to
compute m.

𝒎 = √𝒂𝟐 (1)

PROBLEM SOLVING 2
Provide the first two steps of SDM according to the following pseudocode. Then transform
the pseudocode into a flowchart.
Begin

1. Set a constant value of 1.8 to the celciusToFahrenheit


2. Prompt to enter temperature value in degree Celcius
3. Convert the temperature to degree Fahrenheit
4. Display the temperature value in degree Fahrenheit

End

-------------------------------------------------------- End of L01 ---------------------------------------------------------

Pn Zarina Tukiran, Dr Tasiransurini Ab Rahman, Dr Radzi Ambar,


Pn Nor’aisah Sudin, En Mohd Helmy Abd Wahab, Dr Chew Chang Choon

Das könnte Ihnen auch gefallen