subject
Engineering, 07.04.2020 20:05 ellie55991

C#: Dictionaries - Create a dictionary that will hold AT LEAST 3 categories for food with at least 3 foods for each category. E. g. Fruits --> Apple, Strawberries, Orange; Vegetables --> Carrots, Peas, Onions; etc.. Once you have populated your dictionary with categories AND foods for each category, output the all the categories and the foods that you have for them (e. g. Fruits : Apple, Strawberries, Orange). Ask the user if they would like to add a new category OR a new food. If they say a new category, make sure that it is actually a new category and not an existing one. If it is a food, add it to the list of foods that you already had. Ask the user if they would like to enter something else, and if they say yes, keep going, otherwise don't prompt them to input any more information. Once the user has added all of their information, output all of the categories for food and ask the user to pick one to see all of the foods. You only need to do this once, but feel free to make a loop to let them do this as many times as they want.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:20
Athin walled concentric tube exchanger is used to cool engine oil from 160°c to 60°c with water that is available at 25°c acting as a coolant. the oil and water flow rates are each at 2 kg/s, and the diameter of the inner tube is 0.5 m and the corresponding value of the overall heat transfer coefficient is 250 w/m2. oc. how long must the heat exchanger be to accomplish the desired cooling? cpwater=4.187 kj/kg-candcpengine el=2.035 kj/kg·°c, oil . 120]
Answers: 1
question
Engineering, 04.07.2019 19:10
Starting wih an energy balance on a rectangular volume element, derive the one- dimensional transient heat conduction equation for a plane wall with constant thermal conductivity and no heat generation.
Answers: 1
question
Engineering, 04.07.2019 19:10
Which of the following is the most important advantage of a large field of view? a. allows larger areas to be examined b. relieves eyestrain c. minimizes parallax errors. d. increases precision in proportion to the in- crease in field of view
Answers: 2
question
Engineering, 04.07.2019 19:10
Agas is compressed from vi 0.3 m, p 1 bar to of v2 0.1 m3, p2--3 bar. pressure and volume are related linearly during the process. for the gas, find the work, in kj.
Answers: 2
You know the right answer?
C#: Dictionaries - Create a dictionary that will hold AT LEAST 3 categories for food with at least 3...
Questions
question
Mathematics, 12.12.2020 15:50
question
English, 12.12.2020 15:50
Questions on the website: 13722363