CSCI 151

CSCI 151: LAB 3

Skill set for this LAB:

Programming Practice

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 and three-digit positive integer number. The program first prints the user's full name on one line (use operator + to combine strings). The program separates the input number into it's individual digits and prints the digits on separate lines. For example if the input number was 236 the program will print
2
3
6