Question: CISP 1 0 1 0 Computer Science 1 Classwork 3 Objectives To become familiar with the process of implementing classes To be able to implement

CISP 1010 Computer Science1
Classwork 3
Objectives
To become familiar with the process of implementing classes
To be able to implement and test simple methods.
To understand the purpose and use of constructors
To understand how to access instance variables and local variables.
To be able to write javadoc comments.
Instructions
Write a class for the weather forecast, assuming that it has the following attributes:
o The temperature in Fahrenheit; the default value is 70.
o The sky conditions, which could be sunny, snowy, cloudy, or rainy; the default value is sunny.
Include default constructor, overloaded constructor, the accessors, and the mutators.
Include a method that converts Fahrenheit to Celsius.
o Celsius Temperature =(Fahrenheit temperature 32)*5/9.
Write a tester class to test all the methods in your class.
Generate Javadoc for your class.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!