Question: Program must be written in C#. Programming Exercise 3 (pg. 349) Create a program for The Cactus Cantna named FoodOrder that accepts a user's choice

 Program must be written in C#. Programming Exercise 3 (pg. 349)

Program must be written in C#.

Programming Exercise 3 (pg. 349) Create a program for The Cactus Cantna named FoodOrder that accepts a user's choice from the options shown in the accompanying table. Allow the user to enter either an integer tem mmber or a string description Pass the user's entry to one of two overbaded GetDetails) methods, and then display a retuned string with all the order details. The method version that accepts an integer looks up the description and price; the version that accepts a string description looks up the item number and price. The methods retum an appropriate message if the item is not found. Item Number Descriptioin Price 23 25 31 Burrito Taco Tostada 1.95 2.25 3.10 Hint 1. Store Item Number, Description and Price in parallel arrays. 2. Find below the headers of the two GetDetails overloaded methods. private static string GetDetails(int item, int[] itemNums, string[] descriptions, double[] prices) private static string GetDetails(string desc, int] itemNums, stringl] descriptions, double[] prices) Sample Outputs: Please enter item number or description >> 25 Item #25 Taco $2.25 Press any key to contiue Please enter item number or description 34 Item#34 was not found Press any key to continue Submit FoodOrder.cs file. Make sure to copy paste your output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!