1 Recitation Assignment, CS2316 Overview Today, you will be writing a program to help determine the overall status of a day that a user completed. To do so, you will need to implement two functions, typeOfDay and coffee , to help determine exactly what kind of day the user had. Finally, after you write your two helper functions, you will write a third function, main , which will call the typeOfDay and coffee functions and do a little string formatting which will be explained later. CoffeeThe coffeefunction will help produce an adjective for the type of day the user had. First, the function prompts the user about how many cups of coffee the user consumed within the day along with how many hours the user slept the night before. This will require two uses of the built-in input()function. After the user input has been collected and properly formatted, a formula, score = 3 * cups_of_coffee + hours_of_sleep, will be used to determine the users “score” for the day. Based on the calculated score the following should be
You've reached the end of your free preview.
Want to read both pages?
- Spring '12