CSCI 151

CSCI 151: Lab Practice

Skill set for this LAB:

Problem 1
Write a Python program that calculates the perimeter and area of the rectangle, and the area of the circle. Ask user to enter length and width of rectangle, and ask user to enter radius of the circle.
Use the following formulas:
area = width * length
perimeter= 2*length + 2*width
areaCircle = 3.14 * radius * radius

Problem 2 :
Write a Python program that converts Celsius temperature to the correspondent Fahrenheit temperature. The equation for converting a Celsius temperature to Fahrenheit is

Problem 3 :
Write a Python program that converts Fahrenheit temperature to Celsius temperature according to the following formula:

Celsius= (5/9)*(Fahrenheit - 32)

Problem 4:
Write a Python program that prompts the user to enter his/her first and last name The program prints the user's full name on one line (use operator + to combine strings).

Problem 5:
Write a Python program that reas a three-digit positive integer. The program separates the input number into it's individual digits and finds the product of its digits. In addition, the program prints the digits in reverse order on separate lines. For example, if the input number was 236 the program will print
The product is: 36
6
3
2