0% found this document useful (0 votes)
5 views1 page

CSE 102 C2 Lab Final

The document outlines the final lab exam for CSE 102 at the University of Asia Pacific, requiring students to answer three programming questions. The tasks involve calculating the sum of even numbers within a range, computing various properties of a cylinder based on user input, and determining the highest salary among three employees. Each question is associated with a specific learning outcome (CLO3) and has a designated point value.

Uploaded by

arnob
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)
5 views1 page

CSE 102 C2 Lab Final

The document outlines the final lab exam for CSE 102 at the University of Asia Pacific, requiring students to answer three programming questions. The tasks involve calculating the sum of even numbers within a range, computing various properties of a cylinder based on user input, and determining the highest salary among three employees. Each question is associated with a specific learning outcome (CLO3) and has a designated point value.

Uploaded by

arnob
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/ 1

University of Asia Pacific

Department of Computer Science & Engineering


CSE 102 Lab Final
Section : C2
Time: 1 Hour 30 Minutes

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.

You might also like