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 1 to 7
Based on the number input the program will print the corresponding day of the week
1=Monday
2=Tuesday
3=Wednesday
.
.
7=Sunday
Display an error message if the input number is out of range
================= copy program below this line ======================================
# student name SP2024 ch04_lab01
'''
this lab will ask for the input of an integer in the range of 1 to 7 and display the corresponding
day of the week where 1=monday, 2=tuesday.... 7=sunday
program should display an error if the number entered is outside the range
'''
# ====================== input data
dayNum=int(input('please input the day number you want to print '))
# =========================== determine day to print
if dayNum==1:
print('you choose Monday')
elif dayNum==2:
print('you choose Tuesday')
.
.
.
.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!