reate the UML class diagram for the following TemperatureConverter class. All th
ID: 3670526 • Letter: R
Question
reate the UML class diagram for the following TemperatureConverter class. All the methods in this class will be static.
This class will not have any instance fields.
The class has the following static methods:
a method that converts Celsius temperature to Fahrenheit. This method will accept a value that represents the Celsius temperature and return the converted value.
a method that converts Celsius temperature to Kelvin. This method will accept a value that represents the Celsius temperature and return the converted value.
a method that converts Fahrenheit temperature to Celsius. This method will accept a value that represents the Fahrenheit temperature and return the converted value.
a method that converts Fahrenheit temperature to Kelvin. This method will accept a value that represents the Fahrenheit temperature and return the converted value.
a method that converts Kelvin temperature to Celsius. This method will accept a value that represents the Kelvin temperature and return the converted value.
a method that converts Kelvin temperature to Fahrenheit. This method will accept a value that represents the Kelvin temperature and return the converted value.
Use descriptive and meaningful method names.
Part II
Debugging
Read “Using the Eclipse Debugger” and answer the following questions:
What is a syntax error? How does Eclipse tell you there is a syntax error in your code?
What is a runtime error?
What is a logic error?
What is the difference between the two types of red X’s that can be indicated by Eclipse?
Simple red X
Lightbulb red X
How do you start a debug session in Eclipse?
What does a breakpoint do?
How do you set a breakpoint? Can you set more than one?
How do you remove a breakpoint? How do you remove more than one breakpoint?
What is the difference between the Step Into and Step Over debug controls?
reate the UML class diagram for the following TemperatureConverter class. All the methods in this class will be static.
This class will not have any instance fields.
The class has the following static methods:
a method that converts Celsius temperature to Fahrenheit. This method will accept a value that represents the Celsius temperature and return the converted value.
a method that converts Celsius temperature to Kelvin. This method will accept a value that represents the Celsius temperature and return the converted value.
a method that converts Fahrenheit temperature to Celsius. This method will accept a value that represents the Fahrenheit temperature and return the converted value.
a method that converts Fahrenheit temperature to Kelvin. This method will accept a value that represents the Fahrenheit temperature and return the converted value.
a method that converts Kelvin temperature to Celsius. This method will accept a value that represents the Kelvin temperature and return the converted value.
a method that converts Kelvin temperature to Fahrenheit. This method will accept a value that represents the Kelvin temperature and return the converted value.
Use descriptive and meaningful method names.
Part II
Debugging
Read “Using the Eclipse Debugger” and answer the following questions:
What is a syntax error? How does Eclipse tell you there is a syntax error in your code?
What is a runtime error?
What is a logic error?
What is the difference between the two types of red X’s that can be indicated by Eclipse?
Simple red X
Lightbulb red X
How do you start a debug session in Eclipse?
What does a breakpoint do?
How do you set a breakpoint? Can you set more than one?
How do you remove a breakpoint? How do you remove more than one breakpoint?
What is the difference between the Step Into and Step Over debug controls?
Explanation / Answer
This page describes the elements of the UML that I expect my students to know. By no means does this document attempt to portray all of the UML. Those elements described herein are those that I have found useful in practice and those that I have seen featured in formal and informal written communication. That is, these are the minimum features that I consider to represent UML literacy.
******* Class Diagrams ******
A class is represented by a box with up to three sections: the top contains the class name; the middle contains the fields; the bottom contains the methods. Consider the following Java class definition, a ridiculously-designed example that will serve to demonstrate core UML data representations. (Note that if you're one of my students and you ever turn in programs as nonsensical as this, expect to be harassed.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.