0% found this document useful (0 votes)
101 views

Question Bank CPR Practical No.2

This document provides instructions for programming practical number 2 on understanding formatted input and output statements. Students are asked to write programs that 1) convert Celsius to Fahrenheit, 2) convert distances between cities in km to meters, feet, inches and cm, 3) calculate the area of a circle given radius in cm, 4) calculate the hypotenuse of a right triangle given height and base, 5) calculate area and perimeter of a rectangle given length and width, and 6) interchange the contents of two memory locations. The document includes the class, subject, academic year and is signed by the subject teacher.

Uploaded by

api-3728136
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
101 views

Question Bank CPR Practical No.2

This document provides instructions for programming practical number 2 on understanding formatted input and output statements. Students are asked to write programs that 1) convert Celsius to Fahrenheit, 2) convert distances between cities in km to meters, feet, inches and cm, 3) calculate the area of a circle given radius in cm, 4) calculate the hypotenuse of a right triangle given height and base, 5) calculate area and perimeter of a rectangle given length and width, and 6) interchange the contents of two memory locations. The document includes the class, subject, academic year and is signed by the subject teacher.

Uploaded by

api-3728136
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

K. K. Wagh Polytechnic, Nashik – 3.

Subject: Programming in ‘C’ Sub Code: 9017


Class: FYIF (IF/2/C)
Academic Year: 2008 – 2009

Practical No. 2
Understand the formatted input, output and processing statements:

1. Write a program to input the temperature in Celsius and display its equivalent
Fahrenheit temperature value.
2. The distance between two cities (in km.) is input through the keyboard. Write a
program to convert and print this distance in meters, feet, inches and centimeters.
3. Write a program to input the radius of the circle in centimeters and find the area of
that circle.
4. Write a program to input the height and base of the right angle triangle and find the
hypotenuse of it using Pythagoras’ Theorem.
5. Input to the program is length and width of rectangle. Find the area and perimeter of
it.
6. Two numbers are input through the keyboard into two locations C and D. Write a
program to interchange the contents of C and D.

Kute T. B.
(Subject Teacher)

CPR – Practical No. 2

You might also like