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

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, yasminothman02
An air conditioning system consist of a 5 cm diameter pipe, operating at a pressure of 200 kpa. the air initially enters the pipe at 15°c with a velocity of 20 m/s and relative humidity of 80%. if the heat supply throughout the process is 960 w, determine the relative humidity and the temperature at the outlet
Answers: 3
image
Engineering, 04.07.2019 18:10, Strick1530
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
image
Engineering, 04.07.2019 18:10, mamasbug4285
An air compression refrigeration system is to have an air pressure of 100 psia in the brine tank and an allowable air temperature increase of 60°f for standard vapor compression cycle temperatures of 77 f entering the expansion cylinder and 14 f entering the compression cylinder, calculate the coefficient of performance a. 2.5 b 3.3 c. 4.0 d. 5.0
Answers: 3
image
Engineering, 04.07.2019 18:20, sarah7984
Vibration monitoring this technique uses the noise or vibration created by mechanical equipment and in seme cases by plant systems to detemine their actual condtion. a)- true b)- false
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 in other subjects:

Konu
Health, 14.09.2020 07:01
Konu
Mathematics, 14.09.2020 07:01
Konu
Mathematics, 14.09.2020 07:01
Konu
History, 14.09.2020 07:01
Konu
Mathematics, 14.09.2020 07:01
Konu
History, 14.09.2020 07:01
Konu
English, 14.09.2020 07:01
Konu
Health, 14.09.2020 07:01
Konu
Mathematics, 14.09.2020 07:01
Konu
Mathematics, 14.09.2020 07:01