Assignment 5 For this assignment, you'll be given three arrays where one represents the item numbers, a second contains the item descriptions, and the third represents the price of the item. For instance, index 3 in the items array will have the corresponding description for the item in index 3 of the descriptions array and the price for the item in index 3 of the price array. You'll ask the user which item to lookup, search the array for the item, and print the description and price when the item is found. When the item was not found, print, Item not found. Data Arrays int[] items=45, 70, 94, 20, 19, 50, 38, 46 }; string[] descriptions = { "Book", "Keyboard", "Earbuds", "Mouse", "Video Game", "Bag of Coffee", "Fancy Mug", "Pie"); double [] prices = {21.17, 47.29, 27.29, 26.46, 47.80, 7.82, 44.52, 3.14 ); Sample When an item exists: Enter an item number. 50 Price for Bag of Coffee is $7.82 When item doesn't exist: Enter an item number. 33 Item not found
Assignment 5 For this assignment, you'll be given three arrays where one represents the item numbers, a second contains the item descriptions, and the third represents the price of the item. For instance, index 3 in the items array will have the corresponding description for the item in index 3 of the descriptions array and the price for the item in index 3 of the price array. You'll ask the user which item to lookup, search the array for the item, and print the description and price when the item is found. When the item was not found, print, Item not found. Data Arrays int[] items=45, 70, 94, 20, 19, 50, 38, 46 }; string[] descriptions = { "Book", "Keyboard", "Earbuds", "Mouse", "Video Game", "Bag of Coffee", "Fancy Mug", "Pie"); double [] prices = {21.17, 47.29, 27.29, 26.46, 47.80, 7.82, 44.52, 3.14 ); Sample When an item exists: Enter an item number. 50 Price for Bag of Coffee is $7.82 When item doesn't exist: Enter an item number. 33 Item not found
Chapter1: A First Program Using C#
Section: Chapter Questions
Problem 12RQ
Related questions
Question
Hello, I need help with this assignment, I have to use # C language for it and I doing it on Visual Studio. I am really confused about how to do the arrays for this. I have tried to do the assignment which is in the image I added, but all the number items kept saying they are 3.14 for price when the items are all supposed to have unique prices. I also need help with putting the descriptions in the array like "book"likw with the example at the bottom of Assignemnt 5 page. Thank you for the help.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,