Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is a C++ question Educational Goals: The educational goals of this program are that the student should use the concepts of design using pseudocode

this is a C++ question
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Educational Goals: The educational goals of this program are that the student should use the concepts of design using pseudocode output of prompts and labels to match specified output input of values from the keyboard translating algebraic equations into expressions calculations in assignment statements priority of arithmetic operations documentation The wind makes us colder when it blows across the exposed area of our skin. It draws heat away from out bodies. When the wind speeds up, it draws more heat away, so your body cools faster than if it were a still day. A couple Antarctic explorers in the 40's (Siple and Passel) experimented with water bottles and different wind conditions. They formed the first formula to express wind-chill. There have been some changes in the formula over the years because wind-chill is a difficult measurement to express. How many factors should it take into account? the humidity? the person's size and weight? day or night? latitude? The formulas you need OldStyleWC = 0.081 ( 3.71 /velocity + 5.81 - 0.25 velocity)(tempF - 91.4) + 91.4 NewStyleWC = 35.74 +0.6215 tempF - 35.75 (velocity 0.16) + 0.4275 tempF (velocity (16) where velocityis the wind speed in miles per hour and tempFis the Fahrenheit temperature. The first formula is to calculate the wind-chill according to an older formula, used up until 2001. The second formula calculates the wind-chill according to the current formula. where velocity is the wind speed in miles per hour and tempFis the Fahrenheit temperature. The first formula is to calculate the wind-chill according to an older formula, used up until 2001. The second formula calculates the wind-chill according to the current formula. Your program should calculate the wind-chills, based on the user's inputs of the temperature and the starting wind speed. The programs should produce results as seen below, for wind speed, the wind-chill according to the old formula, wind-chill according to the new formula and the difference between the two wind-chills. The output should be nicely labeled; the use of tab characters is encouraged. Sample Run: NOTE: some question was raised about the difference. 31.0-26.0 is not 4.8. The difference is the actual difference between the two results from the formulas. The numbers that are output are rounded to no places, for the formulas, or one place for the difference. So the table is ok as it is. Big Blue Wind Chill Enter air temperature (F): 30 Enter starting wind speed (mph): 4 Temperature: Wind Speed: Old Formula: New Formula: Difference: 30.0 degrees F 4 mph 31.0 26.0 4.8 Another Run: Big Blue Wind Chill Enter air temperature (F): 39.25 Enter starting wind speed (mph): 10 Temperature: 39.25 degrees F Make sure you format the lines of the output as described above. Line breaks, spacing, spelling should be exactly like the sample runs. Testing First, read the assignment carefully. Look at how the program is supposed to behave. You do not know what the code looks like yet that is fine. The assignment gives some examples of normal runs. Consider places where the equations can fail. Make a test plan for this program Save the test case file attached and fill in the table with test cases. You should actually calculate the values of the formulas for the first value of the wind speed, and their difference Calculators ARE allowed! Do NOT just use the sample run numbers given above, make your own test cases using your own inputs. You should have a total of 7 non redundant cases. Put your name and the section at the top of the file. This NOM overnment site has a windchill calculator for both old and new formulas where you can check your calculations. It's always better to have an independent way of checking your work. Do some research read the NOAA government site to find out for what ranges the formulas are supposed to be defined Design There are some specifications that your program needs to meet This program uses user inputs; you will have to prompt the user for them YOU MUST use assignment statements to do your calculations, not calculating expressions in output statements. You MUST use at least one math library function. Yes, there is a way to write the equation without using math functions, but the specification is to use a math function. . Note the types of data being output. Your program must match those. Note the decimal places shown. Use the round function as needed. The numbers from the formulas are rounded to O places; the difference is rounded to 1 place. Your code must be documented. You must use meaningful variable names. You must have a header/prolog

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

Consider this article:...

Answered: 1 week ago

Question

=+j Enabling a productive global workforce.

Answered: 1 week ago

Question

=+ Are you interested in creating or

Answered: 1 week ago

Question

=+working on a micro-multinational?

Answered: 1 week ago