Professional Documents
Culture Documents
YICM CSE101 452 01 Assignment1
YICM CSE101 452 01 Assignment1
ASSIGNMENT 1
INTRODUCTION TO PROGRAMMING
CSE 101
START TIME: 04:00 PM
DATE: Monday, February 12, 2024
FINISH TIME: 19-02-2024
STUDENT NAME: _________________________________________________________
Q. No. CLOs
MAX MARKS Write your name and I.D. number in the space
MARK OBTAINED
1 2.1 5 provided above.
2 Do not use pencils for answering except for drawing.
3
Read each question carefully before answering.
4
5 Number shown on the right-hand side against each
5.00 question is the mark allocated.
TOTAL MARKS
Page 1 of 4
Introduction to PROGRAMMING CSE 101 Sunday, Feb 11, 2024
[Task 1]
Write a program code that Calculate the floor division of two integers 0.5 Mark
[Task 2]
Write a program code that Calculate the power of an integer. Example (num) n 0.5 Mark
[Task 3]
Write Python code to perform the following basic math functions: 1.0 Mark
a. Calculate the absolute value of “num= -3.8” find the answer upto
two decimle places
Output:
The absolute value of -3.8 upto two decimle place is = 3.80
num=-3.8
result=round(abs(num),2)
print("The absolute value of",num,"upto two decimle place is =", result)
Page 2 of 4
Introduction to PROGRAMMING CSE 101 Sunday, Feb 11, 2024
c. Write a code to find the maximam and minimaum value of [150, 75, 49, 55, 133]
Output:
Maximum value: 150
Minimum value: 49
Page 3 of 4
Introduction to PROGRAMMING CSE 101 Sunday, Feb 11, 2024
Page 4 of 4