You are on page 1of 2

National University

Of Computer & Emerging Sciences


Chiniot-Faisalabad Campus.

Assignment # 01

Course Title: Programming Fundamentals Due Date & Time: 12-09-2019 (Thu.) 12:00 PM
Course Code: CS-214
Instructor: Fazeelat Mazhar
Total Marks: 50
____________________________________________________________________________________
Note: All questions must be submitted hand written on paper with pen.

• Handwritten plagiarism will make your obtained marks ZERO.

• Plagiarism in an assignment filled on MS office will result in NEGATIVE marking.

Domain Statement Proficient Developing Beginning


CLO Exemplary(5) Novice (1)
/Level ↓Score → (4) (3) (2)

Cognitive/ Knows how to


Knows how to Basic
3 Write programs pass an array in a Knows how to
write function Understanding of
that employ the function, pass parameter Understands
prototype, call arrays and
01 basic concepts of understands in a function local and global
it and how to functions
structured modular both by ref and scopes
use array in a declaration
programming programming by value
loop syntax
concept

• Plagiarism includes copying from solution manual, friend’s/ class fellow ‘s


notes/Assignments etc…

Minimum criteria to pass this evaluation is shown in green.

• Perform the task in each of the following statements: (20)


a) Write the function header for function zero that takes a long integer built-in array
parameter bigIntegers and does not return a value.
b) Write the function prototype for the function in part (a).
c) Write the function header for function add1AndSum that takes an integer built-in
array parameter oneTooSmall and returns an integer.
d) Write the function prototype for the function described in part (c).

• Write a function rotate(arr[], d, n) that rotates arr[] of size n by d


elements.
(15)

Rotation of the above array by 2 will make array

• Write a function largest(arr[], size) that returns largest element of the


array to main().
(15)

You might also like