Professional Documents
Culture Documents
LABORATORY EXERCISE
CENTRE FOR ELECTRICAL ENGINEERING STUDIES
UNIVERSITI TEKNOLOGI MARA
PULAU PINANG
PERMATANG PAUH CAMPUS
COURSE NAME: COMPUTER PROGRAMMING COURSE CODE: ECE128
PROGRAMME CODE: EE111/112 TAXONOMY: P4 CO – PO ETAC CO1 – PO5
EXPERIMENT: REPETITIVE STATEMENT EXPERIMENT DATE: 29/11/2022
Apply appropriate techniques, resources, and modern engineering and IT tools to well-defined engineering problems, with an
PO5 (ETAC)
awareness of the limitations.
LO2 (MOHE) Ability to display practical skills using modern tools related to electrical (electronic/power) engineering.
WEAK POOR FAIR GOOD
CRITERIA SUB-ATTRIBUTE SCORE WEIGHT MARKS
0 1–2 3–4 5
Conducting
Unable to Complete the
Experiment Complete the Successfully
complete the procedure/
• Able to follow experimental procedure/ complete the
procedure/mo model/coding
procedure. model/coding procedure/ x 0.6
del/coding with highly
• Ability to construct with minimal model/coding
even with dependent
model/system/coding using assistance independently.
assistance. assistance
Conducting software tools completely
Experiment Handling Software Unable to Handle the Handle the
Handle the
Able to handle handle software with a software
software with
equipment/tools/software software even considerable confidently X 0.4
very little
with amount of without
assistance
assistance assistance assistance
Safety Rules
Compliant of safety rules and Not comply Minimal Moderate Full comply X 0.3
procedure
Results Able to
Not able to Incomplete Complete
Ability to produce output for all produce all
produce all produce output produce output X 0.3
tasks completely outputs
outputs with error with warning
efficiently
Applying
Fundamental Applying Fundamental Show
Show no Show minimal Show good
Knowledge Knowledge excellent
understanding understanding understanding
Ability to apply theoretical understanding
of theoretical of theoretical of theoretical
knowledge in experimental of theoretical X 0.4
knowledge in knowledge in knowledge in
work knowledge in
experimental experimental experimental
experimental
work work work
work
/10
PART A
CEEE/OCT 2022/ECE128/LABORATORY
PART B
Repetition no of
while User input for mark total counter
statement
1 9 9 1
2 8 17 2
3 5 22 3
4 6 28 4
5 2 30 5
CEEE/OCT 2022/ECE128/LABORATORY
PART B (I)
PART C
CEEE/OCT 2022/ECE128/LABORATORY
2 4 6 20
3 6 12 56
4 8 20 120
5 10 30 220
6 12 42 364
7 14 56 560
8 16 72 816
9 18 90 1140
10 20 110 1540
CEEE/OCT 2022/ECE128/LABORATORY
PART D
Explaination : If user had entered the mark as -1,the program will stop immediately.
PART D (I)
CEEE/OCT 2022/ECE128/LABORATORY
1 1 0
2 2 1
3 3 2
4 4 3
5 5 3
6 6 4
7 7 5
8 8 6
9 9 7
10 10 9
CEEE/OCT 2022/ECE128/LABORATORY
Conclusion :
In this experiment,I’ve learned how to understand and use the increment, decrement and assignment operators and use the while
repetition statement to execute statements in a program repeatedly. Other than that,I’ve learned how to use the for and do...while
repetition statements to execute statements in a program repeatedly and use the for and do...while repetition statements to execute
statements in a program repeatedly.
EXERCISE 1
CEEE/OCT 2022/ECE128/LABORATORY
EXERCISE 1.1
EXERCISE 3
Z
CEEE/OCT 2022/ECE128/LABORATORY