You are on page 1of 1
JAYPEE UNIVERSITY OF INFORMATION TECHNOLOGY, WAKNAGHAT MID TERM EXAMINATION (SEPTEMBER 2013) Semester 1° (CSE, ECE, ICT, CE, BI, BT, BTDD, BPHARMA) COURSE NAME: Introduction to Computers & Programming COURSE CODE: 10B11C1111 / 138181281 MAX. MARKS: 30 COURSE CREDITS: 3 TIME: 2 Hrs NOTE: All questions are Compulsory. This paper consists only Single Page. Q1) (a) Draw the flowchart to convert a floating point number to its binary equivalent. (Marks 2.5) (b) Write an algorithm to generate all the triplets (a, b, c), such that a’+b’=o", where a, b, care positive integers, a= 400) unsigned int i = 65535; b= 300; while (i++ |= 0) © = 200; printt("%d", ++i); printf(‘b = 96d ¢ = %dlin’, b, ¢); | printi("n"), return 0; return 0; } }

You might also like