[Coding Exercise] Week 6 - A chef recommendation app

.pdf

School

Simon Fraser University *

*We aren’t endorsed by this school

Course

120

Subject

Computer Science

Date

Oct 30, 2023

Type

pdf

Pages

4

Uploaded by xiaofanfan

Report
6/19/22, 12:56 PM [Coding Exercise] Week 6 - A chef recommendation app https://canvas.sfu.ca/courses/70584/assignments/777650?module_item_id=2544975 1/4 [Coding Exercise] Week 6 - A chef recommendation app Due Thursday by 11:59a.m. Points 0 Submitting a file upload File Types zip Available until Jun 24 at 11:59a.m. Start Assignment The owner of a new restaurant decided to provide customers with chef recommendations based on customers' ingredients preferences. The recommendations worked so well that they now want to create an automatic recommendation system. You will be developing an app to this avail! This app is a first request from the restaurant owner , where given a main ingredient there is only one possible dish, although a dish may be recommended given different main ingredients. This table shows what the available recommendations are, based on the main ingredient. The cost is associated to each dish. Main ingredient Recommendation Cost tomato spaghetti with tomato sauce 10.00 fish lemon butter fish 15.00 potato shepherd pie 13.50 lettuce Caesar salad 6.50 chicken roasted rosemary chicken 15.00 meat shepherd pie 13.50 pasta spaghetti with tomato 10.00
6/19/22, 12:56 PM [Coding Exercise] Week 6 - A chef recommendation app https://canvas.sfu.ca/courses/70584/assignments/777650?module_item_id=2544975 2/4 sauce cheese extra cheese pizza 6.50 YOU ARE ASKED TO: Create a Python chatbot that depicts the interaction with the customers at a table, first asking, for each table, the number of people, and then, for each customer at the table: the customer is asked what specific ingredient they would prefer. If the requested ingredient is not available, a 'special dish' will be recommended, with cost 15.00 If a generic vegetable is requested, the recommendation can be any dish whose main ingredient is any (randomly chosen) of the vegetables available as main ingredients. At the end of collecting all the orders the app should summarize the order for the table, and indicate the total cost. SAMPLE RUNS Sample run 1 Sample Run 2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: Statement 1: Viruses can spread faster than vulnerability-enabled worms Statement 2: A backdoor may…
Q: Give an example of a linear transformation whose image is spanned by 6 in R³. Be 8 sure to give some…
Q: Write a program that reads student data from a file, compute their GPA and writes the results to a…
Q: standard deduction last year was $12,550. Note: Leave no answer blank. Enter zero if applicable.…
Q: Write the net ionic equation  3CoI2(aq)+2K3PO4(aq)=Co3(PO4)2(s)+6KI(aq
Q: Use The Standard Normal Distribution Table to find the specified area under the standard normal…
Q: A stone of mass 3.7 kg drops from rest at a height of 7.67 m. What magnitude of impulse, J, does…
Q: OH A 1. NaH, THF (solvent) 2. CH₂CHCH₂Br В
Q: Complete the charge balance equation for an aqueous solution of H₂CO3 that ionizes to HCO3 and CO3-.…
Q: A force F(x) = bx³ acts on a potato as it moves along the x-axis from the origin to 4.1 m. How much…
Q: Risk Assessments can only be performed on specific chemicals or pollutants and there are still many…
Q: The solutions are hard to read. How to find Fh?
Q: 14. Explain why Mycoplasma and Mycobacterium are atypical cells and diseases caused by each
Q: Consider two vectors A and B such that Ã × B = B(A Find the angle between A and B if ß = 6.
Q: Annual additions to qualified retirement plans include interest and dividend income. forfeitures…
Q: The log of the field metabolic rate (FMR) or the log of the total energy expenditure per day in…
Q: = A small block slides without friction up and over the icy hill shown in the figure below. The…
Q: A 5.0 mH inductor and a 10.0 resistor are connected in series with a 6.0 V ideal battery and a…
Q: A particle starts from the origin of a three-dimensional coordinate system and undergoes two…
Q: 37. Which of the following statements best describes the condition of our inland waters today as…
Q: mandatory competency test for high school sophomores has a normal distribution with a mean of  425…
Q: What chemical equation best describes the oxidation of a metal with hydrochloric acid? M(s) + x…