0% found this document useful (0 votes)
2K views13 pages

Experiment 4 Lab Report

(15 marks) tools without errors x 3.75 Communication Not able to Able to provide Able to provide Able to provide Able to provide Ability to provide and Reporting provide clear minimal details clear details of clear details of clear details of details of experimental Skills (15 marks) details of work of work done work done with work done with work done with done despite fully despite minimal minor omissions no omissions in no omissions in supervision supervision structured report structured report TOTAL SCORE (100 marks) LECTURER'S COMMENTS AND

Uploaded by

Amirul 0205
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views13 pages

Experiment 4 Lab Report

(15 marks) tools without errors x 3.75 Communication Not able to Able to provide Able to provide Able to provide Able to provide Ability to provide and Reporting provide clear minimal details clear details of clear details of clear details of details of experimental Skills (15 marks) details of work of work done work done with work done with work done with done despite fully despite minimal minor omissions no omissions in no omissions in supervision supervision structured report structured report TOTAL SCORE (100 marks) LECTURER'S COMMENTS AND

Uploaded by

Amirul 0205
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

ECE128/ Laboratory Rubric/Feb 2020/V1

LABORATORY PRACTICAL ASSESSMENT – LPA


SCHOOL OF ELECTRICAL ENGINEERING
COLLEGE OF ENGINEERING
UNIVERSITI TEKNOLOGI MARA
CAWANGAN JOHOR
KAMPUS PASIR GUDANG
COURSE NAME COMPUTER PROGRAMMING COURSE CODE ECE128
PROGRAMME CODE EE111/EE112 TAXONOMY: P4 CO – PO CO1 – PO5

EXPERIMENT TITLE EXPERIMENT DATE 6/12/2021

EXPERIMENT NO EXPERIMENT 4 SUBMISSION DATE 13/12/2021

STUDENT’S NAME AMIRUL RASYID BIN MEZALAN

ID NUMBER 2021869232

GROUP J4EE1121A1

LECTURER’S NAME MADAM NORBAITI BINTI SIDEK

LECTURER’S COMMENT (if any):


ECE128/ Laboratory Rubric/Feb 2020/V1

CO1 Construct computer language programs using standard programming tool.

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 use Able to use


Not able to Able to use
Conducting Ability to use software Not able to use appropriate of appropriate
partially use appropriate
Experiment tools efficiently appropriate tools/equipment tools/equipment x 3.75
appropriate tools/equipment
(15 marks) tools/equipment with minimal correctly
tools/equipment efficiently
error without error

Successfully Successfully Successfully


Ability to performs Unable to Successfully
complete the complete the complete the
experimental complete the complete the
experimental experimental experimental
procedure without experimental experimental x 5.0
procedure with procedure with procedure with
supervision procedure despite procedure without
substantial moderate minimal
(20 marks) fully 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

Not able to Able to


Able to
Not able to construct Able to construct construct
Ability to construct construct
Model/System construct partially model/coding model/coding
model/system/coding model/coding
model/coding model/coding using software using software
/Coding using software tools
using software using software tools with major
using software
tools
x 3.75
Construction completely tools with
tools tools with major error completely
(15 marks) minor error
error without error

TOTAL MARKS
UNIVERSITI TEKNOLOGI MARA
FACULTY OF ELECTRICAL ENGINEERING

ECE128
COMPUTER PROGRAMMING
LABORATORY MANUAL

NAME: AMIRUL RASYID BIN MEZALAN

STUDENT ID: 2021869232

GROUP: J4EE1121A1

INSTRUCTOR: MADAM NORBAITI BINTI SIDEK


RESULTS
PART A
PART B
PART C
PART D
1.
2.
3.
EXERCISE
1. From procedures of Part A, answer these questions:
i. What is type of square function?
Answer: Return value type
ii. Based on the function theory above, which category is square function belongs to?
Answer: Built-in Function.
iii. In your opinion, what is the advantage of function return value?
Answer: The local variables can be return within the function
iv. Main function has called the square function in this program. Is it called by reference or called
by value? Explain your answer.
Answer: It’s called by reference.

2. From procedures of Part B, answer these questions:


i. What void function means?
Answer: Void functions are created and used just like value-returning functions except they do
not a return a value after the function executes.
ii. Which category is loop function belongs to?
Answer: User defined function
iii. In your opinion, why loop function did not has any parameter compared to square function?
Answer: Because loop function is a void function.
3. Observe the following partial program. Answer the questions below.

i. Is this partial program is function declaration or function definition?


Answer: Function definition
ii. State two(2) differences between function declaration and function definition.
Answer: Function declaration is a function that can be declared any number of times while
function definition can be defined only once.
iii. Is this function has any parameter? Explain why.
Answer: It has a parameter because it’s a return type function
iv. In your opinion, discuss the benefit of recursion.
Answer: Recursion can lead to more readable and efficient algorithm descriptions.

4.
DISCUSSION

In this experiment, it is about function in C language programming. A function is a group


of statements that together perform a task. A function in C programming consists of a
function header and a function body. There are parts of a function which are return type,
function name, parameters and function body. Return type is a function that may return a
value. Function name is the actual name of the function. Parameters is like a placeholder
where you pass a value to the parameter when a function is invoked.

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.

You might also like