Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

JABATAN TEKNOLOGI MAKLUMAT DAN KOMUNIKASI

POLITEKNIK UNGKU OMAR

SESI 1 2021/2022

KOD KURSUS : DFC 20113


NAMA KURSUS : PROGRAMMING FUNDAMENTALS
PENILAIAN : LABORATORY TASK 1

SESI SEMASA : SESI 1 2021/2022


SEKSYEN KURSUS : DDTN3
NAMA PENSYARAH KURSUS : DR. MAY ASLIZA BINTI TAN ZALILAH
ARAHAN PENILAIAN:

1. Jawab semua soalan dalam masa 120 minit


2. Jawapan adalah secara individu.
NO. PENDAFTARAN NAMA CLO MARKAH

01DDT20F2018 MUHAMMAD HARITH BIN JEFPERI 1


2 100

Jumlah

Disediakan oleh: Disemak dan Disahkan oleh:

‘AFIFAH NAILAH BINTI MUHAMAD JAMALIAH BINTI MUSA


LABORATORY TASK 1
Topic 1: Introduction to Fundamentals of Programming (100 marks)
[CL02]: Show simple programs by developing code to solve problems in a computer using C++
programming language. (P2, PLO 3)

INSTRUCTION

1. Do refer an extra tutorial about basic input output statements using C++ at
https://www.youtube.com/watch?v=D3OF-67IorA, then answer the following questions.

2. Start your task with the following sections:

/*
LABORATORY TASK 1
Name
Matrix No.
Class*/

QUESTION:

1) Write a program that fulfil the following requirements:

a. Ask user input as below


i. Name
ii. Registration Number
iii. Semester
iv. Four Course Codes and the pointers
b. Show the Final Exam Result Slip format as in Figure 1(Please use your own input
data)

Figure 1
2) Circle and Identify the type error occurred in the codes below with simple explanation in
your own word.

Codes Type of error & explanation


Data type for “ integer ” must be changed into
“ int ”. It is because every data type in c++ has
been set some certain word with their format.

s It will keep looping because it was declared i=0


then it was been set only i==0.

It will not display any result number because when


we enter second number with 0 it will not display
anything. So any number cannot divide by 0.
Rubric: Practical Skills (PLO 3, CLS 3a)
Laboratory Task 1
Excellent Good Satisfactory Unsatisfactory
[4] [3] [2] [1] Weightage Standard Score

Compilation and • Program • Able to write • Able to write • Able to write


Creation compiles and a good a coding a coding
of Executable run with coding standard standard
no errors. standard with with less with more X/4
at least one than 50% than 50% 30
* 30
error errors. errors
although
with a
guidance

Problem Solving • Solution using • Solution • Solution • Solution


program using using using
✓ Structure of elements is program program program
program 100% correct elements is elements is elements is
✓ Variable and efficient 100% correct almost 100% wrong and
with no and efficient correct and it inefficient
✓ Error
guidance. with is not the and unable X/4
Identification 50
Could identify guidance. most to identify * 50
and explain Could efficient with and explain
errors precisely identify and guidance. error
explain errors Couldn’t although
precisely identify and with a
explain guidance
errors
precisely

Result • Able to • Able to • Able to • Able to


execute execute execute execute
✓ Adequate program that program that program but program but
work produce the produce the produce produce
correct output correct some incorrect
with and meet output and incorrect output and
X/4
all the meet 100% result and doesn’t meet 20
* 20
specification specification almost meet all the
with no with 100% of the specifications
guidance guidance specifications although
with with a
guidance. guidance

Plagiarism Mark will be reset due to plagiarism issue

Late Mark will be deducted based on the number of day late ( 1 mark for 1 day late)
submission

Total Scores /100

You might also like