CSE 102 C2 Lab Final
CSE 102 C2 Lab Final
Write down the answers to the following questions in a word file and submit.
1. Given two numbers a and b as input, print the sum of even numbers that are 10 [CLO3]
greater than a and smaller than b. You can assume that a<b
2. 10 [CLO3]
Using the information presented above, print the diameter, perimeter, base
area, lateral surface, surface and volume of the cylinder. Assume that the
radius, r and height, h will be given as input to the user. You can use the
approximate value of 3.1416 for pi.
3. Mr. Goku is working for Capsule Corporation as a programmer. There are 3 5 [CLO3]
employees in Capsule Corp. Mr. Goku’s boss, Bulma told him to write a
program which takes 3 numbers as input. Each input number represents the
salary of an employee in Capsule Corp. Bulma demands that the program
should print the highest salary among all the employees. As you might know,
although Goku might be one of the strongest fighters in the universe, he is
weak in math and programming. Help Goku write the program.