Question: Complete the program below, utilizing onlineGDB. The program will ask for the input of a integer in the range of 1 to 7 Based on
Complete the program below, utilizing onlineGDB.
The program will ask for the input of a integer in the range of to
Based on the number input the program will print the corresponding day of the week
Monday
Tuesday
Wednesday
Sunday
Display an error message if the input number is out of range
copy program below this line
# student name SP chlab
this lab will ask for the input of an integer in the range of to and display the corresponding
day of the week where monday, tuesday.... sunday
program should display an error if the number entered is outside the range
# input data
dayNumintinputplease input the day number you want to print
# determine day to print
if dayNum:
printyou choose Monday'
elif dayNum:
printyou choose Tuesday'
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
