Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions

Question

Identify and control your anxieties

Answered: 1 week ago

Question

Understanding and Addressing Anxiety

Answered: 1 week ago