Cse bdbdbdb hdhdhdbhd hdhdhdhdhd PDF

Title Cse bdbdbdb hdhdhdbhd hdhdhdhdhd
Author rising phone
Course Mechanics of solid
Institution East West University
Pages 2
File Size 124.8 KB
File Type PDF
Total Downloads 56
Total Views 140

Summary

Bdbdhdjfhdh jdhdjdjfbf hdhdbd hdhdhdhhf jjdjjdjdhjd ndbdbdhdh...


Description

International Islamic University Chittagong Department of Computer Science & Engineering B.Sc. in CSE, Final Term Lab Assessment, Spring 2021 Course Code: CSE-1122 Course Title: Computer Programming 1 Total Marks: 20 Time: 2 hours [Answer all 2 from the following Questions. Figures in the right-hand margin indicate full marks]

1 a)

You are given coordinates of two points in a 2D space. Determine If they are 4 from the same quadrant. Sam Sampl pl ple e Inp Input ut 1 1 3 9 2 3 -3 -5

Sam Sampl pl ple e ou outpu tpu tputt Yes No

Note that point (2,3) lies in the 1st quadrant whereas point (-3, -5) belongs to the 3rd quadrant. b)

6 You are given an integer N. Its value can be 1, 2 or 3. If N = 1 then take 2 integer values A and B as input which denotes the height and width of a rectangle. Print its area. If N = 2 then 3 integers A, B and C will be followed by denoting the height, breadth and length of a cuboid. Take the inputs accordingly and print the value of its volume. If N = 3 then take 1 integer value A will be followed by denoting the length of a square. Take the inputs accordingly and print the value of its area. See sample input output for more details. Sam Sampl pl ple e Inp Input ut

2 a)

Sam Sampl pl ple e ou outpu tpu tputt

1 21 3 7 2 30 1 6 5 5 You are given N number of integer values, count the number of 5 or 3s in the list. Also print the total sum of these 5s and 3s. First line of input contains an integer N followed by N number of integer values in the next lines. All the integer values are within the range of 1 and 100000. Sam Sampl pl ple e Inp Input ut 6 1 3 5 6 3 5

Sam Sampl pl ple e ou outpu tpu tputt 4 Sum: 16

b)

6 3 3 1 5 10 3 Sum: 11 A Epic Epicumb umb umber er is the one whose digit sum is 17.

5

number ber ber. Find out KthEpic num K is an integer given as input and 1...


Similar Free PDFs