Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hour 3 minute = 45 #You may modify the lines of code above, but don't move them! #When you Submit your code, we'll change

hour = 3 minute = 45 #You may modify the lines of code above, but dont move them! #When you submit your code, well change t

hour 3 minute = 45 #You may modify the lines of code above, but don't move them! #When you Submit your code, we'll change these lines to #assign different values to the variables. #Around Georgia Tech, there are plenty of places to get a #late night bite to eat. However, they have different hours, #so when choosing where to go, you have to think about who's #still open! # #Imagine you're choosing between the following restaurants: Barrelhouse: Closes at 11:00PM Taco Bell: Closes at 2:00AM # # # # # #Assume that this list is also a priority list: if Barrelhouse #is open, you choose Barrelhouse. If not, you choose Taco Bell #if it's open. If not, you choose Cookout if it's open. If #not, you choose Waffle House. # #However, there are two wrinkles: We're using 12-hour time. - hour will always represent a time from 10PM to 5AM. # # # # Cookout: Closes at 3:00AM Waffle buse: Never closes. Ever. #That means that if hour is 10 or 11, it's PM; if hour is # 12, 1, 2, 3, 4, or 5, it's AM. This will make your reasoning #a little more complex. #restaurants open later You may assume that all four than 6AM, though, so you don't have #to worry about opening time, just closing time. # #Add some code below that will print what restaurant you'11 #go to based on the current values of hour and minute.

Step by Step Solution

3.33 Rating (162 Votes )

There are 3 Steps involved in it

Step: 1

Code hour 12 min 0 if hour 11 or hour 10 hour12 if hour 12 ho... 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

Microsoft Visual C# An Introduction to Object-Oriented Programming

Authors: Joyce Farrell

7th edition

978-1337102100

More Books

Students also viewed these Programming questions

Question

=+a) Create a run chart for the baseballs circumferences.

Answered: 1 week ago