RA_Coffee.pdf - Recitation Assignment CS2316 Overview Today you will be writing a program to help determine the overall status of a day that a user

RA_Coffee.pdf - Recitation Assignment CS2316 Overview Today...

This preview shows page 1 - 2 out of 2 pages.

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
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Spring '12
  • summet

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture