hour 3 minute = 45 #You may modify the lines of code above, but don't move...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
Code hour 12 min 0 if hour 11 or hour 10 hour12 if hour 12 ho... View the full answer
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Posted Date:
Students also viewed these programming questions
-
Correct the errors in the lines of code shown in Figure 5-32. The code variable has the char data type; the other variables have the int data type. if (toupper(code) = 'x') cout < < "Discontinued" <...
-
Correct the errors in the lines of code shown in Figure 4-34. (The code contains eight errors.)
-
We have indicated that if you have two categorical variables and you want to check whether they are related, the best method is to create a crosstabs, possibly with the counts expressed as...
-
Prove that if a planetary orbit is circular of radius R, then vT = 2R, where v is the planets speed (constant by Exercise 7) and T is the period. Then use Keplers Third Law to prove that Data From...
-
Using the information in Exercise 7, complete the requirements assuming a periodic inventory system In Exercise 7 Xion Supply uses a Sales Journal, a Purchases Journal, a Cash Receipts Journal, a...
-
An analyst ran a regression for the last 60 months with the monthly returns for Procter and Gamble (PG) as the dependent variable and the monthly returns for the S&P 500 Index as the independent...
-
On April 1, Topeka Brake Mfg. purchased new production scheduling software for \(\$ 480,000\). On May 15 , a representative of a computerized manufacturing technology company demonstrated new...
-
Reinsurance can be used by an insurer to solve several problems. Assume you are an insurance consultant who is asked to give recommendations concerning the type of reinsurance plan or arrangement to...
-
You are required to conduct an analysis of specific financial data of Bob Smith, Inc. Bob is an existing bank customer. When the loan to Bob was originally made in 2 0 1 6 , the bank required Bob to...
-
The Vintage Restaurant is located on Captiva Island, a resort community near Fort Myers, Florida. The restaurant, which is owned and operated by Karen Payne, just completed its third year of...
-
In Discrete Structures class, there are students who are 19. 20 21. and 22 years old Due to a newly instituted dress code, the students may only wear red blue green or purple shirts to class What is...
-
We usually discuss GDP in terms of what is included in the definition. What is not included in GDP? Why are these things excluded?
-
A first-order heterogeneous irreversible reaction is taking place within a spherical catalyst pellet \(200 \mu \mathrm{m}\) in diameter. \[a \xrightarrow{k^{\prime \prime}} b\] The reactant...
-
Fick's Law states that mass flows in the direction of decreasing concentration. What is it about the activator/inhibitor system that allows Fick's Law to be circumvented?
-
Why has nominal GDP increased faster than real GDP in the United States over time? What would it mean if an economy had real GDP increasing faster than nominal GDP?
-
In a two-dimensional, Cartesian system, if we have irrotational flow of a fluid, what is the definition of the stream function?
-
Question 17 A swap bank makes the following quotes for 5-year currency swaps: USD EUR Bid Ask Bid Ask 5% 5.5% 7% 7.5% O The bank stands ready to pay 5.5% on a 5-year loan in USD O The bank stands...
-
Why is homeostasis defined as the "relative constancy of the internal environments? Does negative feedback or positive feedback tend to promote homeostasis?
-
In this exercise, you modify the program from Lab 13-2. If necessary, create a new project named Intermediate27 Project and save it in the Cpp8\Chap13 folder. Also create a new source file named...
-
Michael wants a program that calculates and displays the percentage of the total points he contributed to his basketball teams final score. Michael will provide the number of twopoint baskets, the...
-
Use the sales array to answer. The array was declared using the int sales[2][5] = {{10000, 12000, 900, 500, 20000}, {350, 600, 700, 800, 100}}; statement. Which of the following verifies that the...
-
IFRS and the CPA Canada Handbook, Part II, have equal status in Canada for financial reporting.
-
Any Canadian company that uses U.S. GAAP must prepare its statements in U.S. dollars.
-
In a private corporation, the needs of external users have no impact on the companys financial reporting objectives.
Study smarter with the SolutionInn App