The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.
Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by ssuhaimi33, 2022-11-29 07:59:09

PBT_Q PEMBETULAN_2

PBT_Q PEMBETULAN_2

CLO2A /35

TOTAL
RETURN
DATE

DEPARTMENT OF INFORMATION AND COMMUNICATION TECHNOLOGY
COURSEWORK ASSESSMENT (Session: 1 2022/2023)

Name :1. Nur Syarafana binti Suhaimi (21DDT22F1182) Reg. No. :
Code / Course 2. Hasya Batrisya binti Mohamad Rafi (21DDT22F1197) Programme/ Class :DDT1F
3. Kretvalin A/P Ai som (21DDT22F1106)

: DFC10212 PROBLEM
SOLVING AND PROGRAM
DESIGN

Lecture’s : [CLO: CLO2A] Week (Date) :
NORHALIZA Submission Date :
BINTI IDRIS Duration : 420 Minutes

PBT.

COURSE LEARNING OUTCOME:

CLO2A: Demonstrate effective problem-solving skills in oral (communication) or in writing by using
different types of programming tools to solve a given problem. (C2, PLO 4)

INSTRUCTION:

1. Form group which 3@4 person for each group.
2. Answer all the question given
3. Prepare the Report

QUESTION 1:

Nurul Amani wishes to bake a cake. But all the ingredients are weight is ounces. Please help Annie to
convert the measurement in grams which is 1 ounces is equal to 28.4395g .

Prepared by; Checked by; Verified by;

(SALMAH BINTI ISMAIL) SITI HAJAR BT MOHAMADON) NURHANI BINTI MOHD SABRI
KETUA PROGRAM DDT
Course Lecturer Course Coordinator
Date: 17/10/2022 Date: 17/10/2022 Jabatan Teknologi Maklumat &

(NURHAKNomI uBniIkNasiTPIolMitekOnikHBDalikSPuAlauBRI)

Head of Program
Date: 17/10/2022

QUESTION 1:

Nurul Amani wishes to bake a cake. But all the ingredients are weight is ounces. Please help Annie to
convert the measurement in grams which is 1 ounces is equal to 28.4395g .

Based on Question 1,
i) Identify Input, Process and Output

Input Input ounces
Process 1 ounces = 28.4395g
Output Display gram

ii) Write algorithm

CONVERT OUNCES TO GRAM
1. Input ounces
2. 1 ounces = 28.439g
3. Display gram

iii) Illustrate flowchart

START

1 ounces = 28.439g
Display gram
END

Question 2

Assume that the transaction is money withdrawal. The instructions are below :

» Get the card number from the user.
» Get pin number from the user
» Process the input data
» Get the transaction chosen by the user
» Get the account type from the user
» Process the transaction as wanted by the user
» Withdraw amount of money required by the user
» Print receipt for the user

Based on Question 2,

i) Identify Input, Process and Output

Input INPUT card_number, pin_user
Process Transaction_user
Output
Display amount of money
Print receipt

ii) Transform IPO into pseudocode
START
Enter card_number, pin_user;
Data will calculate amount of money required;
Display amount of money;
Print receipt
END

iii) Illustrate flowchart

START

Enter card_number, pin_user

Data will calculate amount of money
required

Display amount of money, print receipt

END

Question 3

To determine whether a candidate is qualified or not to get a scholarship based on his / her
study years,guardian salary and student CGPA. If the study year is more than 1,student’s
CGPA is not less than 3.00 and guardian’s salary is below than RM500,student will be
considered for a scholarship

Based on Question 3, write

i) Pseudo Code

START
ENTER study_years, guardian_salary,student_CGPA
If study_years > 1;
Print “passed”;
If student_CGPA >= 3.00;
Print “passed”;
If guardian_salary >= RM500;
Print “passed”;
End If
Print “Congratulation,you get it!”
Print “Sorry, you failed”
END

ii) Flowchart
START

ENTER
study_years,student_CPGA,guardian

_salary

study_years > 1 true print “passed”
student_CGPA >=3.00 true print “passed”
true
guardian_salary print “passed”

print “Sorry, you failed” true
false print “Congratulation,you get it!”

END

Question 4

PBU factory have 20 paid employees with regard to basic salary, claims and overtime work. Total EPF
will be deducted from basic salary by 9%. Calculate the net income earned by the employee.

INPUT PROCESS OUTPUT

Basic_salary, The process below will repeat until the condition Salary
Claim, O_time to exit the loop is met.

Calculate EPF:
EPF = Basic_salary * 0.09

Calculate Salary :
Salary = Basic_salary + Claim + O_time – EPF

Based on Question 4, write a flowchart.

START

INPUT Basic_salary,
Claim, O_time

Calculate EPF:
EPF=Basic_salary*0.09

Calculate Salary:
Salary=Basic_salary+Claim+O_time-EPF

DISPLAY salary

END

Sub Atribut Sangat Baik Baik Memu
5 4
Boleh
A. Kejelasan Idea Boleh menyampaikan Boleh menyampa
idea dengan sangat menyampaikan idea denga
jelas idea dengan jelas. namun me
sedikit
B. Keyakinan Idea Boleh menyampaikan Boleh penambah
idea dengan sangat menyampaikan idea Boleh
yakin dan menyakinkan. dengan yakin dan menyampa
menyakinkan. dengan ya
menyakink
Boleh namun me
sedikit
C. Keberkesanan Boleh menyampaikan menyampaikan penambah
dan Artikulasi idea dengan sangat
Idea berkesan dan petah. idea dengan Boleh
menyampa
berkesan dan dengan be
namun me
petah. sedikit
penambah

D. Kefahaman Boleh memahami dan Boleh memahami dan Boleh mem
dan Menjawab menjawab soalan menjawab soalan dan menja
Soalan dengan cemerlang. dengan baik. soalan den

E. Boleh menulis idea Boleh menulis Boleh men
Kejelasan dengan sangat jelas. idea dengan idea denga
Penulisan jelas. dan meme
sedikit
F. Boleh menulis idea Boleh menulis penambah
Kesinambunga dengan sangat baik. idea dengan
n Dalam baik. Boleh men
Penulisan dengan
memuaska

uaskan Lemah Sangat Lemah Marks
3 1
2
aikan Tidak boleh
an jelas Boleh menyampaikan idea
emerlukan menyampaikan idea dan memerlukan
dan memerlukan banyak
hbaikan penambahbaikan penambahbaikan.
lanjut.
aikan idea Tidak boleh
akin dan Boleh menyampaikan idea
kan menyampaikan idea dengan yakin dan
emerlukan dengan yakin dan menyakinkan.
menyakinkan
hbaikan namun memerlukan Tidak boleh
penambahbaikan menyampaikan idea
aikan idea lanjut. dengan berkesan.
erkesan
emerlukan Menyampaikan Tidak memahami
idea dengan dan tidak dapat
hbaikan. berkesan namun menjawab soalan.
memerlukan
mahami penambahbaikan Tidak boleh
awab lanjut. menulis idea
ngan baik. dengan jelas.
Boleh memahami
nulis dan menjawab
an jelas soalan tetapi kurang
erlukan bertepatan dengan
kehendak
hbaikan. soalan.

nilis idea Boleh menulis
idea dengan
an. jelas dan
memerlukan
penambahbaikan
lanjut.

Boleh menulis idea Tidak berupaya
dan memerlukan menulis idea.
penambahbaiakn
lanjut.

G. Penulisan Boleh menulis idea Boleh menulis Boleh men
yang dengan sangat idea dengan dengan sis
Sistematik sistematik. sistematik. dan meme
sedikit
penambah

nulis idea Boleh menulis idea Tidak boleh menulis
stematik dengan sistematik idea dengan
erlukan dan memerlukan sistematik
penambahbaikan
hbaikan. lanjut


Click to View FlipBook Version