Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 2 ( 2 5 Points ) : Consider you recently started a restaurant which opens from 8 . 0 0 AM to 9 .
Question Points: Consider you recently started a restaurant which opens from AM to PM Sunday to Friday. Write a python program that does the following:
I. Take input of day as integer. Here, Monday Tuesday dots. Sunday
II Take the time in hour input in hour format. In hour format means AM and means PM
III. Determine whether the restaurant is open or close at the time and date.
Check the following sample InputOutput for understanding.
Sample Input :
Input Day:
Input Time:
output: restaurant is open.
Sample Input :
Input Day:
Input Time:
Output: restaurant is close.
You must test the following two test cases with your code and attach the output.
Sample Input :
Input Day:
Input Time:
output:
Sample Input :
Input Day:
Input Time:
Output:
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