Question: In JAVA Subject: OOP in JAVA Thank You SCENARIOS A research is conducted in identifying the effect of freezing and boiling points on several substances.
In JAVA
Subject: OOP in JAVA



Thank You
SCENARIOS A research is conducted in identifying the effect of freezing and boiling points on several substances. The measurement is set by providing the temperature value and determine which substances will response to the freezing or boiling state. Given the following are list of substances and point, with descriptions: Boiling Point Substance Freezing Point Ethyl -173 Alcohol Oxygen -362 172 -306 Following are processes in identifying the temperature status: Boiling state: if the temperature stored is at or above the boiling point, result will show a boolean value true, and false otherwise. Freezing state: if the temperature stored is at or below the freezing point, result will show a boolean value true, and false otherwise, INSTRUCTIONS This program is to evaluate student's skills applying the: Object oriented concept Classes and objects Write a complete class to demonstrate the above scenario. The class should have field to store a temperature value Notes: Student shall demonstrate the program as in a dialog boxes (JOptionPane class) SAMPLE SCREEN OF OUTPUT: Student may have a different output yet provided the important information. Student shall show the result as in a dialog box. If the temperature value is 180 Enter temperature: 180 At 180.0: Ethyl alcohol will boil. Oxygen will boil. If the temperature value is -173 Enter temperature: -173 At -173.0: Ethyl alcohol will freeze. Oxygen will boil. If the temperature value is -306 Enter temperature: -306 At -306.0 Ethyl alcohol will freeze. Oxygen will boil. If the temperature value is -172 Enter temperature: -172 Oxygen will boil. INPUT VALIDATION The program shall demonstrate the validation of temperature value in the demo class. Refer the "Temperature Description" for details. . NOTES a) The program shall include the following (but not limited to): Comments Proper indentation and spacing Creativity on screen display of output b) To include the following on the first line of your program (in each file): Example: // Author: John Doe // Subject: CSC 2510 / CSC2515 Object Oriented Programming // Assignment 02: this program is to
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
