Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

there's a logical error with this code. hope you can fix this. hope you can make this code more logical and add some explanation. Output

 there's a logical error with this code.

 hope you can  fix this.

 hope you can make this code more logical and add some explanation.



imageimage

Output - FoodOrder (run) x run: Please enter your name: a Welcome a! What would be your order? ******* 1. Sandwich 2. Burger 3. Dessert **Menu ****** 4. Beverages *********** ****** Please enter the number that you want to order: 4 ****** 1. Coke 2. Pepsi 3. Sprite *Beverages Please enter the number of your desired drink:3 1. Regular 2. Medium 40 50 3. Large 70 Choose size please: 3 Enter Quantity:5 *******Your Order' 5 Chicken Your Total Bill is: 350 Thank you for ordering Would you like to order again? Y/N:y Please enter your name: Welcome ! What would be your order?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

The logical error in the code lies in how it handles the or... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions