Professional Documents
Culture Documents
Ee-163 Computers & Programming: Deduction of Marks
Ee-163 Computers & Programming: Deduction of Marks
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 on print. A template is provided herewith
for this purpose. You are not allowed to change template attributes which are:
a) Document Type: Microsoft Word Document
b) Font: Courier New
c) Size: 12
d) Line Spacing: 1.0
Non-compliance shall lead to rejection of your assignment.
5) Programs made for each question should be tested on the compiler. If any of them
are not running satisfactorily by the end of deadline, do mention it in comments.
6) Sessional marks for this assignment are 05equally divided among all questions.
7) If you are using any technique/function/library not covered in the course to solve
the problems, provide brief documentation and reference for them in comments.
8) Non-compliance with any of these instructions shall lead to deduction of marks.
9) Assignment submission deadline: Announced by respective course teacher
REMEMBER: Assignments shall be compared for similarities and checked for
plagiarism. Remember the rule of prudence: Copying is a Crime punishable by
deduction of marks.
Question 1:
Write a program that asks user to enter a decimal integer and displays its Octal and
Hexadecimal equivalents.
Sample Run:
Enter an integer: 12454 [user presses ENTER]
Octal Equivalent: 30246
Hexadecimal Equivalent: 30A6