Hello, I need some help with this assignment please, I need to make multiple classes for this program, while also asking the user which items to llok up too. I have tryed multpile times myslef, but I cannot get the output correct. It needs ro be in # C lauanage and I am working on it through Visual Studio. Thank you for your help.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter9: Using Classes And Objects
Section: Chapter Questions
Problem 1CP: In previous chapters, you have created programs for the Greenville Idol competition. Now create a...
icon
Related questions
Question
100%

Hello, I need some help with this assignment please, I need to make multiple classes for this program, while also asking the user which items to llok up too. I have tryed multpile times myslef, but I cannot get the output correct. It needs ro be in # C lauanage and I am working on it through Visual Studio. Thank you for your help.

Assignment7.pdf
>
new item (20,
new Item (19,
new Item (50,
new Item (38,
new Item (46,
};
Sample Output
2 / 2
Mouse
"Video Game", 47.80),
"Bag of Coffee", 7.82),
"Fancy Mug", 44.52),
"Pie", 3.14),
When an item exists:
20.401,
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.
TT
ด
T
0₁
12.0
X
:
Transcribed Image Text:Assignment7.pdf > new item (20, new Item (19, new Item (50, new Item (38, new Item (46, }; Sample Output 2 / 2 Mouse "Video Game", 47.80), "Bag of Coffee", 7.82), "Fancy Mug", 44.52), "Pie", 3.14), When an item exists: 20.401, 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. TT ด T 0₁ 12.0 X :
Assignment7.pdf
>
Assignment 7
3.
4.
Create an Item class with the following characteristics:
1. Named "Item"
2.
Data Array
1
For this assignment, we'll take assignment 5 and convert it to use an Item class that you create instead
of 3 separate arrays where you had to marry the data together for output. Similar to assignment 5, you'll
ask the user which item number to lookup, search the items array that's using the class you create for
the item, and print the description and price when the item is found. When the item was not found,
print, Item not found.
Item Class
/ 2
Item [] items =
{
new Item (45,
new Item (70,
new Item (97,
new Item (20,
new Item (19,
new Item (50,
new Item (38,
new Item (46,
};
Sample Output
TT
Has 3 public getter properties defined:
a. Number as int
b. Description as string
C.
Price as double
Has a constructor that takes in an int, string, and double to set the 3 properties as above.
Has a method named Display that prints the information for the item when found.
a.
For example, if 50 is entered, calling display writes the following to the console:
Price for Bag of Coffee is $7.82
When an item exists:
h
This data array should look familiar to the arrays in assignment 5, just now it's all a single array and
we're using the new Item class that you create to store the data.
"Book", 21.17),
"Keyboard", 47.29),
"Earbuds", 27.29),
"Mouse", 26.46),
"Video Game", 47.80),
"Bag of Coffee", 7.82),
"Fancy Mug", 44.52),
"Pie", 3.14),
W
T
0₁
12.0
X
:
Transcribed Image Text:Assignment7.pdf > Assignment 7 3. 4. Create an Item class with the following characteristics: 1. Named "Item" 2. Data Array 1 For this assignment, we'll take assignment 5 and convert it to use an Item class that you create instead of 3 separate arrays where you had to marry the data together for output. Similar to assignment 5, you'll ask the user which item number to lookup, search the items array that's using the class you create for the item, and print the description and price when the item is found. When the item was not found, print, Item not found. Item Class / 2 Item [] items = { new Item (45, new Item (70, new Item (97, new Item (20, new Item (19, new Item (50, new Item (38, new Item (46, }; Sample Output TT Has 3 public getter properties defined: a. Number as int b. Description as string C. Price as double Has a constructor that takes in an int, string, and double to set the 3 properties as above. Has a method named Display that prints the information for the item when found. a. For example, if 50 is entered, calling display writes the following to the console: Price for Bag of Coffee is $7.82 When an item exists: h This data array should look familiar to the arrays in assignment 5, just now it's all a single array and we're using the new Item class that you create to store the data. "Book", 21.17), "Keyboard", 47.29), "Earbuds", 27.29), "Mouse", 26.46), "Video Game", 47.80), "Bag of Coffee", 7.82), "Fancy Mug", 44.52), "Pie", 3.14), W 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
Running Time of Application
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage