CIS 174                                                        LAB ASSIGNMENT  #3
Assigned date: Tuesday 2/12
Due date: Tuesday 2/20
30 points

Lab 3.1 [6 points]

Write a program that converts centigrade to temperatures to Fahrenheit temperatures. The formula is

F =  9   C  + 32
       5

F is the Fahrenheit temperature and C is the Celsius temperature.

Sample run

36.0 degree in celsius is equivalent to 96.8 in fahrenheit

Lab 3.2 [6 points] 

Using Turtle to Draw a rectangle.

Lab 3.3 [6 points]

Create a World object and a Turtle object and use the Turtle object to draw a star. Write a Java program named lab33 to solve the problem. A copy of your source code and run time output.

Lab 3.4 [6 points]

Write a method  for Turtle to draw a rectangle. Name the method drawRectangle. Write a Java program named lab34 to test the method drawRectangle.
A copy of your source code and run time output.

Lab 3.5 [6 points]

Write a method  for Turtle to draw a rectangle. Pass in the width and height for the rectangle. Name the method drawRectangleSize.
Write a Java program named lab35 to test the method drawRectangleSize.
A copy of your source code and run time output.