Question: Write a program that can calculate the following three problems one by one. For each problem, the program will ask for user's inputs and then

Write a program that can calculate the following three problems one by one. For each problem, the program will ask for user's inputs and then provide the answers.
(1) Calculation #1
Calculate the wind chill given a temperature and wind speed when user enters wind speed in KPH and temperature in Celsius Use the North America wind chill index in F and MPH link to wikipedia or link to a web
NOTE: ** will do exponents so do not use pow()
NOTE: precision does matter
(2) Calculation #2
Get the roots of a quadratic formula, you have coefficients a, b, c that forms a function ax2+bx+c =0
NOTE: You can assume that the a, b, and c will cause imaginary (complex) numbers
(3) Calculation #3
Calculate the surface area and volume of torus when user enter the radius r for the small circle and R for the big circle.
Style
Edit the file header to add your name(s), date, and description of the program.
Look over the style document and be sure you are following it as closely as possible.
Execution Example
This Program
(1) Calculates the Wind Chill effects
(2) Solves quadratic function
(3) Calculates torus
(1) Please enter wind speed (kilometer per hour)
10
Please enter air temperature (C)
10
The wind chilling effect is 47.559978396115525
(2) Solving the quadratic function now
Enter coefficient a
1
Enter coefficient b
5
Enter coefficient c
6
Your first root is -2.0
Your second root is -3.0
(3) Calculating the surface area and volume of a Torus
Enter your dimensions for a Torus: (large loop radius (R) and small tube radius(r))
2
4
Torus's surface area =315.82881792
Torus's volume =631.65763584

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