You and your date are going to a fancy restaurant and you don't have reservations. Whether...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You and your date are going to a fancy restaurant and you don't have reservations. Whether you can get seated depends on how well dressed you and your date are. Your program will prompt for two inputs: the style of you and your date. Input for each should be a integer on a scale of 1-10, with 10 being the best. You can be seated immediately if either of you are 'stylin' (8 or higher). However, if you or your date have a style of 2 or less, then you won't be seated, even if one of you is a 8 or more. Otherwise, you'll have to wait for a table. Based on the inputs, your program should indicate if you can be seated right away, if you have to wait, or if there are not tables. Sample output shown below: Rate how dressed up you are, with 10 being the best! ==> 8 How about your date? Same scale ==> 9 Your table is ready! Rate how dressed up you are, with 10 being the best!==> 9 How about your date? Same scale ==> 2 Sorry, No table available Rate how dressed up you are, with 10 being the best! ==> 5 How about your date? Same scale ==> 5 You and your date are going to a fancy restaurant and you don't have reservations. Whether you can get seated depends on how well dressed you and your date are. Your program will prompt for two inputs: the style of you and your date. Input for each should be a integer on a scale of 1-10, with 10 being the best. You can be seated immediately if either of you are 'stylin' (8 or higher). However, if you or your date have a style of 2 or less, then you won't be seated, even if one of you is a 8 or more. Otherwise, you'll have to wait for a table. Based on the inputs, your program should indicate if you can be seated right away, if you have to wait, or if there are not tables. Sample output shown below: Rate how dressed up you are, with 10 being the best! ==> 8 How about your date? Same scale ==> 9 Your table is ready! Rate how dressed up you are, with 10 being the best!==> 9 How about your date? Same scale ==> 2 Sorry, No table available Rate how dressed up you are, with 10 being the best! ==> 5 How about your date? Same scale ==> 5
Expert Answer:
Related Book For
Posted Date:
Students also viewed these databases questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
The population (in millions) of a country in 2015 and the expected continuous annual rate of change k of the population are given. (a) Find the exponential growth model P = Ce kt for the population...
-
The accompanying table shows a series of transactions in a savings account. The account pays 6% simple interest, and the account owner withdraws interest as soon as it is paid. Create a new table...
-
H&R Block reported the following account on its statement (dollars in thousands): Assume no purchases were made of marketable securities during 20132015. REQUIRED: a. Did the market value of H&R...
-
Using the variance data for Menounos Manufacturing Co., prepare an income statement through gross profit for the year ended December 31, 20Y6. Assume the company sold 3,000 units at $100 per unit.
-
Hudson Company operates two factories. The company applies factory overhead to jobs on the basis of machine hours in Factory 1 and on the basis of direct labor hours in Factory 2. Estimated factory...
-
Discuss each of the following terms: (a) data (b) database (c) database management system (d) database application program (e) data independence (f) security (g) integrity (h) views 2. What is...
-
Amazon originally started as an online bookseller, but over time, developed into selling millions of products and provides a platform for other firms to sell their goods. Is this an example of...
-
Valuation with free cash flow to equity and free cash flow to the firm: O both use the cost of equity. O use different discount rates. O both use the after-tax cost of debt. O both use a risk -free...
-
Write a Python program to input a number and calculate sum of digits using for loop. Sample Input: 1234 Sample Output: Sum of Digits: 10 ** 1234 = 1+2+3+4 Write a Python program to calculate the...
-
Assume that the firm invests $100,000 today and $50,000 three years from now to get $25,000 at Year 1, $35,000 at Year 2, $45,000 at Year 3, $50,000 at Year 4, $55,000 at Year 5, and $45,000 at Year...
-
If 3x f(x) < x +2 for 0 < x <2, find lim f(x). 2-1
-
You are now a business analyst for Global Bike Inc. (GBI). You have been assigned to assist the strategic planning team with profitability analysis and forecasting. Your IT team has pulled...
-
What materials are investigators looking for when they collect evidence?
-
Evaluate the integral, if it exists. Jo y(y + 1) dy
-
Identify, and outline briefly, major trends in management theory since the beginning of this century. Debate critically the extent to which the ideas of management gurus have any practical relevance...
-
Give detailed practical examples of situations in which each of the following theories of motivation might be appropriate: (i). Achievement motivation; (ii). Equity theory; (iii). Goal theory.
-
Explain what you see as the main attributes for organisational success and give examples from your own or some other organisation. Discuss the importance of innovation as a key factor in...
-
See Table 2.5 showing financial statement data and stock price data for Mydeco Corp. a. Compute Mydecos PE ratio each year from 2019 to 2023. In which year was it the highest? b. What was Mydecos...
-
See Table 2.5 showing financial statement data and stock price data for Mydeco Corp. a. Compute Mydecos ROE each year from 2019 to 2023. b. Compute Mydecos ROA each year from 2019 to 2023. c. Which...
-
In early 2018, United Airlines (UAL) had a market capitalization of \($25.14\) billion, debt of \($12.73\) billion, and cash of \($5.59\) billion. United also had annual revenues of \($38.72\)...
Study smarter with the SolutionInn App