logo Hurry, Grab up to 30% discount on the entire course
Order Now logo
623 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Aditya PanchalMathematics
(5/5)

704 Answers

Hire Me
expert
Ritesh NagarLaw
(5/5)

987 Answers

Hire Me
expert
Natsha TakiaFinance
(5/5)

891 Answers

Hire Me
expert
Thaissa LannesLaw
(5/5)

932 Answers

Hire Me
Python Programming
(5/5)

Welcome to the Taste Journal! Enter 1 to add a new entry, or 2 to look up an existing entry.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Dictionaries and Sets: Taste Journal

Start Assignment

I find it difficult to remember which foods I like and which foods I don't. Who has the time to memorize what a banana tastes like? That's why we've got Python! Create a python program that (temporarily) stores different foods and your assessment of their flavor. Users can add new foods and flavor reviews to the program or look up existing foods to see what they thought of them previously.

Use a dictionary to act as your Taste Journal. You can use a loop to ask the user whether they'd like to look up an existing food or add a new one, then process the action as necessary. Your program should handle incorrect input.

Upload your .py file here.

Example:

Welcome to the Taste Journal! Enter 1 to add a new entry, or 2 to look up an existing entry.

Enter to quit.

>>> 1

What is the food to be added?

>>> Baked Potato

How did it taste?

>>>a little bland

Would you like to continue? Y or N

>>> Y

Welcome to the Taste Journal! Enter 1 to add a new entry, or 2 to look up an existing entry. Enter to quit.

>>> 2

What is the food?

>>> Baked Potato

The Baked Potato verdict: a little bland

Hints and Notes:

• Your program only needs to store this information while it's running. In otherwords, you don't need to save any information to file, and it's fine if your Taste Journal dictionary is blank to start

• If a user enters an existing food in the entry option, then you should update that food's flavor with the new entry. After all, some foods grow on us.

Requirements:

You must use a dictionary to store your foods and flavor reviews

• Your program must run until the user chooses to exit.

Users should be able to add food/flavor combinations and look up those combinations.

 

(5/5)
Attachments:

Expert's Answer

623 Times Downloaded

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme