Answered step by step
Verified Expert Solution
Link Copied!

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 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

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

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions

Question

What is the least squares estimator of ?????

Answered: 1 week ago