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. Thank you for the help.

Enhanced Discovering Computers 2017 (Shelly Cashman Series) (MindTap Course List)
1st Edition
ISBN:9781305657458
Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Chapter4: Programs And Apps: Productivity, Graphics, Security, And Other Tools
Section: Chapter Questions
Problem 10CT
icon
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. Thank you for the help.

Assignment5.pdf
Pages Bookmarks
1
<
Assignment 5
1 / 1
Data Arrays
TT
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.
Sample
W
int[] items = { 45, 70, 94, 20, 19, 50, 38, 46 };
string[] descriptions = { "Book", "Keyboard", "Earbuds",
"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 };
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.
"Mouse",
T
0₁
12.0
X
:
Transcribed Image Text:Assignment5.pdf Pages Bookmarks 1 < Assignment 5 1 / 1 Data Arrays TT 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. Sample W int[] items = { 45, 70, 94, 20, 19, 50, 38, 46 }; string[] descriptions = { "Book", "Keyboard", "Earbuds", "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 }; 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. "Mouse", T 0₁ 12.0 X :
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Structure chart
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
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning
Microsoft Windows 10 Comprehensive 2019
Microsoft Windows 10 Comprehensive 2019
Computer Science
ISBN:
9780357392607
Author:
FREUND
Publisher:
Cengage
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L