subject

Imagine that you are helping to build a store management system for a fast food restaurant. Given the following lists, write a program that asks the user for a product name. Next, find out if the restaurant sells that item and report the status to the user. Allow the user to continually inquire about product names until they elect to quit the program. Here are some lists to get you started:
# product lists
product_names = ["hamburger", "cheeseburger", "small fries"]
product_costs = [0.99, 1.29, 1.49]
And here's a sample running of your program:
(s)earch for product or (q)uit: s
Enter a product name: hamburger
We sell "hamburger" at 0.99 per unit
(s)earch for product or (q)uit: s
Enter a product name: salad
Sorry, we don't sell "salad"
(s)earch for product or (q)uit: voldemort
Invalid option, try again
(s)earch for product or (q)uit: q

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 19:50
Which feature is selected to practice and save the timing of a presentation
Answers: 1
question
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
question
Computers and Technology, 24.06.2019 18:00
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best-suited for this?
Answers: 1
question
Computers and Technology, 25.06.2019 15:40
Provide the format and assembly language instruction for the following hex values: address 1000: 13 address 1001: 01 address 1002: 81 address 1003: fe
Answers: 2
You know the right answer?
Imagine that you are helping to build a store management system for a fast food restaurant. Given th...
Questions
question
English, 01.04.2021 21:20
question
Mathematics, 01.04.2021 21:20
question
Mathematics, 01.04.2021 21:20