Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started