Starting from:

$30

Wind Chill Temperature Index

 
Wind Chill Temperature Index

Wind Chill is the term used to describe the rate of heat loss on the human body resulting from the combined effect of low temperature and wind.  As winds increase, heat is carried away from the body at a faster rate, driving down both the skin temperature and eventually the internal body temperature.

The first wind chill formulas and tables were developed by Paul Allman Siple and Charles F. Passel working in the Antarctic before the Second World War They were based on the cooling rate of a small plastic bottle as its contents turned to ice while suspended in the wind on the expedition hut roof, at the same level as the anemometer (pictured above). The so-called Windchill Index provided a pretty good indication of the severity of the weather.

In late 2001, the National Weather Service implemented a new Wind Chill Temperature (WCT) Index. The reason for the change was to improve upon the old index used by the NWS and the Meteorological Services of Canada (MSC) which was based on the 1945 Siple and Passel Index.

 

 

 

 


Develop a Java application that prompts for and reads two double numeric amounts that represent the Fahrenheit temperature and the wind speed.  The temperature must be between -45 and 40 inclusively. The wind speed must be between 5 and 60 inclusively. Use these two amounts in the formula below to calculate the wind chill temperature in degrees Fahrenheit.



Here is how you calculate the New Wind Chill Index:

          Wind Chill (oF) = 35.74 + 0.6215T - 35.75(V0.16) + 0.4275T(V0.16), where

            V is the Wind Speed in MPH, and

            T is the temperature in degrees F.

 

 

 


·        Creating a class

·        Variables

·        Strings

·        Input/output facilities

·        Conditional statements

·        Logical operators

·        Eclipse IDE

 

 


Your program must use the single class WindChill with only one static void main method

 

 


·        Use the Scanner class for input, and use System.out.print or System.out.println for output. Please make sure that the Scanner is closed when your project terminates.

·        You must use "named constants" for any literal values that will not change during program execution.

·        You must use meaningful variable names and good indentation.

·        Ask the user for the Fahrenheit temperature and the wind speed.

·        Remind the user that temperature values should be greater than or equal to -45, but less than or equal to 40, and the wind speeds should be greater than or equal to 5, but less than or equal to 60, but don't validate these values in your code.

·        Display a header for your application.

·        Display the wind chill temperature that results.

·        Display your name as programmer at the end.

·        Just in case you know what an array is -- you may not use arrays (or any Java collections of any kind) while implementing this project.

·        Run your application with the command line (javac, java) and with an IDE Integrated Development Environment (Eclipse)

 

 


Example 1:

Wind Chill Calculator

 

Please enter the temperature in Fahrenheit (must be = -45 and <= 40): 30

Please enter the wind speed (must be = 5 and <= 60): 20

 

Wind chill temperature: 17.361783756466327 degrees Fahrenheit

 

Programmer: (insert your name here)

 

Example 2:

Wind Chill Calculator

 

Please enter the temperature in Fahrenheit (must be = -45 and <= 40): -15.5

Please enter the wind speed (must be = 5 and <= 60): 35.3

 

Wind chill temperature: -48.842359110042835 degrees Fahrenheit

 

Programmer: (insert your name here)

 

Example 3:

Wind Chill Calculator

 

Please enter the temperature in Fahrenheit (must be = -45 and <= 40): -9.3

Please enter the wind speed (must be = 5 and <= 60): 22.8

 

Wind chill temperature: -35.55509110244696 degrees Fahrenheit

 

Programmer: (insert your name here)

 

Example4:

Wind Chill Calculator

 

Please enter the temperature in Fahrenheit (must be = -45 and <= 40): 0

Please enter the wind speed (must be = 5 and <= 60): 22.5

 

Wind chill temperature: -23.09357636894822 degrees Fahrenheit

 

Programmer: insert your name here

 

 

 


Design: Submit your initial design (pseudo-code and test cases) in Blackboard.

Implementation: Run the application twice, and turn in screen shots of both runs in Blackboard.

·        Run it once using command-line Java (javac to compile, and java to run). Your screen shot should show both compilation and execution. If your computer cannot find the javac or java commands, see the lecture slides explaining how to set the path for Java.

·        Run it again using an Integrated Development Environment (IDE). I would recommend Eclipse. Provide a screen shot of the console output. See the lecture slides explaining how to download and install Eclipse.

·        Turn in your final design (pseudo-code and test cases)

·        Turn in the working java file WindChill.java (not the .class file).

·        Learning Experience: In 3+ paragraphs, highlight your lessons learned and learning experience from working on this project. What have you learned? What did you struggle with? What will you do differently on your next project?

Submission Detail

·        Upload two .zip files for each assignment.  The first .zip file will contain all the files required for the assignment (final design with pseudocode and table of test cases, screen shot of runs and the .java file, and will be named: LastNameFirstName_AssignmentX.zip. 

·        The second .zip file will only contain the .java files and will be named: LastNameFirstName_AssignmentX_Moss.zip.  This .zip will not have any folders in it – only .java files.

Here’s an example for Assignment 1:

KartchnerJeannette_Assignment1.zip [a compressed file containing the following]

                   PseudoCode_and_TestTable.docx

                   Learning_Experience.docx

                   CmdLine_output.jpg

                   Eclipse_console_output.jpg

                   WindChill.java

 

KartchnerJeannette_Assignment1_Moss.zip [a compressed file containing only the following]

                   WindChill.java

More products