Hey guys! I have a serious problem. I missed class for computer science because I had two grandparents die in 2 weeks. My teacher has a no exception policy for turning in homework late.
Tonight has been my only free night to do homework but I am stuck and not sure what to do.
I have two problems to do for computer science and I have no idea how to do them. Can someone PLEASE HELP! I would be so gracious!
1. The national weather service computes the wind chill index using the following forumla.
Windchill (ºF) = 35.74 + 0.6215T - 35.75(V^0.16) + 0.4275T(V^0.16)
Where T is the temperature in degrees Fahrenheit and V is the windspeed in miles per hour. Write a program that prints a nicely formatted table of wind chill values. Rows should represent wind speed for 0-50 in 5 mph increments and the columns represent temperatures from -20 to 60 in 10 degree increments.
That is the first problem. I just don't know how to make a table.
Here is a link to the thing it should look like.
2. A positive whole number n > 2 is primed if no number between 2 and the square root of n (inclusive) evenly divides n. Write a program that accepts a value of n as input and determines if the value is prime. If n is not prime, your program should quit as soon as it finds a value that evenly divides n.
i have the basics written for this one.
n = input(Please enter your number:")
Otherwise I am not sure what to do. Any help would be awesome!!!!! PLEASEEEEEEEEEEEEEEE!!!!!