Now, the "tricky" part that you don't know how to do: printing the table. The range function is non-inclusive, so you have to give it a stop value that's one step higher than what you want. This function takes three values: start, stop and step. To do this you can use the range-function in a list-comprehension. Then you create two lists with the values in windspeeds and temperatures. # compute the formula you got in the assignment The formula you described can be defined as a function. I can give you some pointers for your first task. Any help would be awesome!!!!! PLEASEEEEEEEEEEEEEEE!!!!! If n is not prime, your program should quit as soon as it finds a value that evenly divides n. Write a program that accepts a value of n as input and determines if the value is prime. A positive whole number n > 2 is primed if no number between 2 and the square root of n (inclusive) evenly divides n. Here is a link to the thing it should look like.Ģ. 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. Write a program that prints a nicely formatted table of wind chill values. Where T is the temperature in degrees Fahrenheit and V is the windspeed in miles per hour. The national weather service computes the wind chill index using the following forumla. Can someone PLEASE HELP! I would be so gracious!ġ. I have two problems to do for computer science and I have no idea how to do them. Tonight has been my only free night to do homework but I am stuck and not sure what to do. My teacher has a no exception policy for turning in homework late. I missed class for computer science because I had two grandparents die in 2 weeks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |