Question: Objective To build a complete working Java program that offers practice with program modularity using methods. Overview & Instruction Write a Java program that will
Objective To build a complete working Java program that offers practice with program modularity using methods. Overview & Instruction Write a Java program that will determine the risk of severe weather at a given weather station by utilizing measurements taken from a weather balloon. Weather balloons are used to observe upper air measurements. There are several severe weather indexes used by meteorologists. Two are included in this assignment. Each include a simple arithmetic formula and are defined to calculate values based on patterns and conditions likely to produce severe weather. They offer a forecaster a quick number that can be referenced to assist in judging weather risks on a given day. These measurements taken via weather balloons are not taken at standard heights, but instead at standard pressure levels in the unit of millibars The severe weather indexes your program will calculate require the following values : T temperature at mb T temperature at mb T temperature at mb Td dew point at mb Td dew point at mb Below are two indexes your program needs calculate: Total Totals Index TT T Td T in degrees Celsius The value produced from the Total Totals Index then can be interpreted to produce the following forecasts: Total Totals Index Severe Weather Risk Less Than Thunderstorms Unlikely to Isolated Moderate Thunderstorms to Scattered Moderate, Few Heavy Thunderstorms to Scattered Moderate, Few Heavy, Isolated Severe Thunderstorms to Scattered Heavy, Few Severe Thunderstorms, Isolated Tornadoes to Scattered to Numerous Heavy, Few to Scattered Severe Thunderstorms, Isolated Tornadoes Greater Than Numerous Heavy, Scattered Severe Thunderstorms, Few to Scattered Tornadoes KIndex K T Td T T Td in degrees Celsius The value produced from the KIndex then can be interpreted to produce the following forecasts: Total Totals Index Severe Weather Risk Less Than Thunderstorms Unlikely to Isolated Thunderstorms to chance of thunderstorms to chance of thunderstorms, some severe to chance of heavy thunderstorms, some severe Greater than Almost chance for thunderstorms, some severe Include minimally the following methods for your solution: Calculate KIndex Assess KIndex risk Calculate Total Totals Index Assess Total Totals Index risk One or more methods for input validation For validation, assume that mb values must be between and mb values must be between and and mb values must be between and Note also that the dew point values can never exceed the temperature values. Since there is no direct "user input", you are free to close the program for any incorrect input data. Instead of direct user prompts for input, your program should pull information from a data file. A file is preferred for this solution due to the larger number of data tokens required for input. The file name and format should match what you see in this example: uadata.txt which stores the following observations: T Td T Td and T Output for the program should be summary report displayed via a dialog box to include the following information: Total Totals Index value and associated risk statement K Index value and associated risk
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
