0% found this document useful (0 votes)
82 views

Introduction To Computing:: Dead Line For Assignment Submission: 2 November 2018 11:55pm

The document provides instructions for an assignment in Introduction to Computing, with a deadline of November 2nd 2018. It lists 5 questions to be answered by writing functions that output various tables and results. Students are instructed to call an introductory function at the start of each question to include their name, roll number, and contact information.

Uploaded by

Ali Optimistic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
82 views

Introduction To Computing:: Dead Line For Assignment Submission: 2 November 2018 11:55pm

The document provides instructions for an assignment in Introduction to Computing, with a deadline of November 2nd 2018. It lists 5 questions to be answered by writing functions that output various tables and results. Students are instructed to call an introductory function at the start of each question to include their name, roll number, and contact information.

Uploaded by

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

Introduction to Computing:

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.

Question 2: Print your name

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)

number(i) square cube


--------------------------------------------------------------------------
0 0 0
1 1 1
2 4 8
And so on………..
--------------------------------------------------------------------------
Question 5: Print the following output on screen: (make use of arithmetic expression where required)

************
Result Sheet
************

Student’s Roll No. Math Physics Chemistry Total

----------------------------------------------------------------------------------------------------------

2357 99 85 97 281
----------------------------------------------------------------------------------------------------------

You might also like