Beruflich Dokumente
Kultur Dokumente
Instructions:
1) The assignment needs to be completed individually. Collaboration with other
students is not allowed however sharing of ideas is acceptable here ideas
strictly mean ideas and not codes. You also need to provide reference of person
with whom you have shared ideas.
2) The theme of this assignment is DIY (Do It Yourselves), however you can take help
from books, internet, discussion forums etc on one condition only; provide
complete and proper reference at every point where you have used these
resources.
3) Method of referencing:
Put an asterisk [ * ] at the point of reference in the program and at the foot of the
same page provide the reference starting with the asterisk [ * ]. For a second or
third reference use two or three asterisks respectively [ ** , *** ].
The reference at the foot should be complete like:
*www.cprogramming.com/steve_summit/q%27_35%20.htm
**Introduction to C Programming by Paul Wolfowitz, Page 39-40
***Idea taken form Muhammad Ahmed, TE(Electronic), Section A, Roll No.: EL-133
4) The assignment needs to be submitted online. Method of submission is to put all
your c/cpp files inside a folder finally compressing it as .zip or .rar which needs to
be sent. This zip/rar folder should be named in exactly the following way:
rollNo_name_section.zip/rar
Examples : EE112_zubair_B,
characters are allowed].
Question 1:
Improve the binary search program made in class so that it can search out
multiple entries of the same search value.
Question 2:
Make the Student Poll Program, Fig. 6.7, Page 203 on compiler from your
textbook and give description in 30 lines.
1
52
2
77
3
4
4
9
If the array passed to this function is num[5] with the following call:
cyclicshift_int(num, 0, 4, 2);
The shifted array looks like:
0
4
1
9
2
12
3
52
4
77