Introduction To Computing:: Dead Line For Assignment Submission: 2 November 2018 11:55pm
Introduction To Computing:: Dead Line For Assignment Submission: 2 November 2018 11:55pm
Assignment 1
Dead Line for Assignment Submission: 2nd November 2018 11:55pm
Note: No task should be done in main, main should call only functions.
Question 1: Create a function (myIntro()) that introduce you in start of the program. Consider the given
output:
-----------------------------------------------
*****************************
-----------------------------------------------
Name: ------------
RollNo: ------------
Contact: [email protected]
University of Central Punjab
-----------------------------------------------
*****************************
-----------------------------------------------
Important note: Add your information in start of every question by calling this function. Question
without your information will NOT be checked.
a) in single quote
b) in double quotes
c) enclosed in curly bracket
d) enclosed in backslash \
e) enclosed in forward slash /
f)
Question 3: Print complete table of 89 from 1 to 10. The sample output is:
89*1=89
89*2=178
89*3=267
………
Question 4: Print out a table of 10 numbers formatted as follows. (Make use of arithmetic expression
where
required)
************
Result Sheet
************
----------------------------------------------------------------------------------------------------------
2357 99 85 97 281
----------------------------------------------------------------------------------------------------------