Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

 

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

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_2

Step: 3

blur-text-image_3

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

Management And Organisational Behaviour

Authors: Laurie Mullins

7th Edition

0273688766, 978-0273688761

More Books

Students also viewed these Databases questions

Question

8. Name the three catecholamine neurotransmitters.

Answered: 1 week ago