Experiment 4 Lab Report
Experiment 4 Lab Report
ID NUMBER 2021869232
GROUP J4EE1121A1
PO5 Conduct investigations of well-defined problems; locate and search relevant codes and catalogues, conduct standard tests and measurements.
WEEK POOR FAIR GOOD EXCELLENT SCORE WEIGHT MARKS
CRITERIA SUB-ATTRIBUTE (s) (w) (s x w)
0 1 2 3 4
Able to fulfill Able to fulfill Able to fulfill all
Not able to fulfill Able to fulfill all
minimal safety minimal safety safety rules and
Compliant of safety all safety rules safety rules and
rules and rules and requirements
rules and requirements and requirements requirements x 3.75
requirements with requirements efficiently
(15 marks) with fully without
minimal without without
supervision supervision
supervision supervision supervision
Able to produce
Ability to produce
Not able to Not able to Able to produce all outputs Able to produce
output for all tasks
produce all produce output for all outputs with correctly all outputs x 3.75
completely
outputs partial tasks warning without efficiently
(15 marks)
warning
Applying
Fundamental Show no Show minimal
Knowledge Show good
understanding of understanding of Show minimal Show excellent
Ability to apply understanding
theoretical theoretical understanding of understanding of
theoretical knowledge of theoretical
knowledge in knowledge in theoretical theoretical x 5.0
in experimental work knowledge in
experimental work experimental work knowledge in knowledge in
(20 marks) experimental
despite despite experimental work experimental work
work
supervision supervision
ECE128/ Laboratory Rubric/Feb 2020/V1
TOTAL MARKS
UNIVERSITI TEKNOLOGI MARA
FACULTY OF ELECTRICAL ENGINEERING
ECE128
COMPUTER PROGRAMMING
LABORATORY MANUAL
GROUP: J4EE1121A1
4.
DISCUSSION
In Part A, it’s about the writing of a square function where it is a prototype function and
has a parameter as shown in the output. In Part B, it is a modified Part A by adding a new
function prototype which is loop of type void. The result is still the same as Part A. In Part C,
the program is about a factorial of a number. After the ‘i’ is initialized as a number and a
factorial, the result of the factorial is a number multiply by the factorial whilst the number
minus by 1.
In Part D, for the first part, the program ask to write a function to calculate the sum of two
integers where the function name is addiere with the function parameters, summand1,
summand 2 and the parameter data type as well as function return data type is an integer. For
the second part, the program write a function to show between a min number and a max
number. The program consist of compare function where it compares two number whether it
is a min number or a max number. The parameter data type is an integer also for function
return data type. For the third part, the programs asks to create a function that calculates the
count of odd integers. The function prototype is written as int. The result is determine after
and odd number is iniatialized because of using ‘if’ data type.
CONCLUSION
In conclusion, a programs can be construct modularly from small pieces which is called
functions. It also able to create a new functions. Moreover, student able to used the
mechanism to pass information between functions. Lastly, student able to understand
recursive functions which is a functions that call themselves.