isabellaamaya64 isabellaamaya64 06-02-2024 Computers and Technology contestada """ LESSON: 2.4 - While Loops EXERCISE: After-School Planner """ #### ---- SETUP ---- #### # Ask the user how much free time (minutes) they have # in the afternoon. Typecast to an int and assign it # to the variable minutes_left # Assign an empty string "" to the variable schedule # ---> TEST AFTER THIS LINE <--- # #### ---- MAIN LOOP ---- #### # WHILE minutes_left remains GREATER THAN 0 #### ---- LOOP INPUT ---- #### # Print how many minutes_left the user has # Ask the user for an activity. Assign it to the # variable activity. # Ask the user how long (minutes) the activity will # take. Typecast to an int and assign to minutes #### ---- CALCULATIONS ---- #### # Decrement minutes_left by minutes # ---> TEST AFTER THIS LINE <--- # # Increment schedule by activity # ---> TEST AFTER THIS LINE <--- # # Increment schedule by the string ": " # Increment schedule by minutes typecast to a string # Increment schedule by the string " minutes" # Increment schedule by the string "\n" # (This creates a new line break) # ---> TEST AFTER THIS LINE <--- # # Print an empty line for spacing # ---> TEST AFTER THIS LINE <--- # #### ---- FINAL OUTPUT ---- #### # Print the message "Time's up!" # ---> TEST AFTER THIS LINE <--- # # Print a blank line # Print the title "YOUR SCHEDULE" # Print a line of dashes "--------------" # Print schedule # ---> TEST AFTER THIS LINE <--- # # Turn in your Coding Exercise.