Question: Problem Set: In a relay race in track, the runners pass a baton from runner to runner. This problem is a four-part computer relay race.

Problem Set: In a relay race in track, the runners pass a baton from runner to runner. This problem is a four-part computer relay race. In this computer relay race, you will be passing a computed value from on part to the next. The solution to the first problem is used as the input to the second problem, the solution to the second problem is used as input to the third problem, etc. The initial inputs for the first problem will be entered at the keyboard. The solution to the fourth problem is the solution to the relay and will be output. Note that TNYWR stands for "The Number you will Receive" from the previous problem. TNYWR is two-fold. Enter two values at the keyboard to represent a temperature and a wind speed use suitable prompts, such as "Enter temperature: " and "Enter wind speed: " Calculate the wind-chill index applying the rules: If wind speed is less than or equal to 4 mph, the wind-chill index is equal to the temperature. If wind speed is greater than 4 mph but less than or equal to 45 mph, the wind-chill index is given by the formula: 91.4 - (10.45 + 6.69 windspeed - 0.47windspeed) * 91.4 - temperature/22.0 c. If wind speed is greater than 45 mph, the wind-chill index is 1.6*temperature - 55.0 Let C = TNYWR be a centigrade temperature. Convert it to a Fahrenheit temperature using approximation method: If C 20, use F = 26 +2C. Let W = TNYWR be an angle measured in degrees. Convert this angle measurement to radians by multiplying the number of degrees by /180 where =3.14159. Let T = TNYWR. Compute the slope of the line passing through (T, 1) and (1, T2). Input: Prompt the user for input as shown in the example below. Two number values will be entered by the user. Output: Enter temperature: 20 Enter wind speed: 0 Final value = -2.22Problem Set: In a relay race in track, the runners pass a

CMSC200 Lab 2 Computer Relay Setup Instruction.s Create a new class named "Lab2" in the edu.ben.labs.lab2 package of your CMSC200 Java Project. Problem Set In a relay race in track, the runners pass a baton from runner to runner. This problem is a four-part computer relay race. In this computer relay race, you will be passing a computed value from one part to the next. The solution to the first problem is used as the input to the second problem, the solution to the second problem is used as input to the third problem, etc. The initial inputs for the first problem will be entered at the keyboard. The solution to the fourth problem is the solution to the relay and will be output. Note that TNYWR stands for "The Number You Wll Receive" from the previous problem. 1. TNYWR is two-fold. Enter two values at the keyboard to represent a temperature and a wind speed. Use suitable prompts, such as "Enter temperature:" and "Enter wind speed: " Calculate the wind-chill index applying the rules: a. If wind speed is less than or equal to 4 mph, the wind-chill index is equal to the temperature. b. If wind speed is greater than 4 mph but less than or equal to 45 mph, the wind-chill index is given by the formula 914-(1045-6.69 windspeed -047windspeed).914-temperature 22.0 c. If wind speed is greater than 45 mph, the wind-chill index is 1.6 temperature 55.0. 2. Let C = TNYwR be a centigrade temperature. Convert it to a Fahrenheit temperature using the following approximation method If C s 20, use F 302C If C> 20, use F 262C 3. Let W TNYWR be an angle measured in degrees. Convert this angle measurement to radians by multiplying the number of degrees by t/180 where-3.14159 4. Let T TNYwR. Compute the slope of the line passing through (T, 1) and (1, T2). Input Prompt the user for input as shown in the example below. Two number values will be entered by the user Output: Enter temperature: 20 Enter wind speed: e Final value -2.22

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 Databases Questions!