Question: Instructions Today's POD is going to read in an integer representing the day of the week: 1 for Sunday, 2 for Monday, through 7 for

Instructions Today's POD is going to read in an integer representing the day of the week: 1 for Sunday, 2 for Monday, through 7 for Saturday. Any number above 7 or below I should give an error message. You are going to output a string giving the name of the day of the week (Sunday" for 1, Monday" for 2, etc.). Details Input an integer (dayNumber) representing the day of the week, where 1 represents Sunday, 2 represents Monday, and so forth. Processing Determine which day of the week to which dayNumber correlates. Output Output the day of the week that is related to dayNumber. If no day is related to dayNumber (i.e. dayNumber is not between 1 and 7), then output "Input error" Sample input/output: Input UNOWN Output Sunday Monday Tuesday Wednesday Thursday Friday Saturday Input error Input error Full Screen * pod2.py New 1 ## 2 # CSCI 1105 3 # Week 5, POD 2 4 # @author: Angela Siegel 6 dayNumber = int(input()) 8 #=============================# '9 # PLEASE START YOUR WORK HERE #1 10 #============================= 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
