write a program that takes a waking and sleeping time (for our purposes, hour and minute as numbers) then returns whether the person is awake or asleep, given the current time.
don't forget that someone might go to sleep after midnight so the sleep time might be before the wake time on the same day.
remember, 0 is a valid hour and minute as well as equivalent to false for comparison unless you use identical comparisons.
given a temperature, return a description of how it feels. for example, between -10 and 0 might be freezing, 0-10 cold, 10-20 mild, 20-30 warm, 30-40 hot and above 40 oven.
now do the same for the speed and direction of the wind.
you're trying to figure out what your current grade is in a class. you have the weights and scores of what you've done so far.
| task | score | weight |
|---|---|---|
| first assignment | 8/10 | 3 |
| second assignment | 17/25 | 4 |
| third assignment | 4.5/8 | 6 |
| first test | 27/40 | 5 |
| second test | 35/45 | 5 |
| midterm exam | 71% | 10 |
| midterm paper | 9/15 | 12 |
first, determine what your grade is as a percentage.
second, assuming...
at least 90 is an a+, at least 80 is an a, at least 70 is a b, at least 60 is a c, at least 50 is a d and anything below 50 is an f...
what is your current letter grade?
third, assuming you've finished the first half of the course, if the total weight of the entire course is 120 points, what do you have to average in the rest of the term to get a b?
what about just to pass with a d?