Question: You have been asked to create an inventory system for an online store using C sharp. You should have one of each class ; Instrument,

You have been asked to create an inventory system for an online store using C sharp. You should have one of each class ; Instrument, Accessories and Inventory with certain attributes to them to to be searched for later. Your program will later have a search method to recall and search using certain attributes for example "looking for fender or walnut color acoustic guitar.
I wrote the following codes. Please help. Only in C sharp please. The main goal is to search for a product and find it in the inventory. this part is to create an active inventory that responds to the search with the attributes searched for.
 You have been asked to create an inventory system for an
online store using C sharp. You should have one of each class
; Instrument, Accessories and Inventory with certain attributes to them to to
be searched for later. Your program will later have a search method
to recall and search using certain attributes for example "looking for fender
or walnut color acoustic guitar. I wrote the following codes. Please help.
Only in C sharp please. The main goal is to search for
a product and find it in the inventory. this part is to

class Instrument { public string modelNumber; public string guitarType; public string brand; public string shape; public float size; //In inches public string playingSide; public string material; public float neckLength; public int numberofStrings; public string stringType; public string getData() { return this.modelNumber + this.guitarType + this.brand + this.shape + this.size + this.playingSide + this.material + this.neckLength + this.numberofStrings + this.stringType; class Accessories { public string brand; public string name; public int stock; public float size; //in inches public string getData() return this.brand + this.name + this.size + this.stock; } class Inventory { public static void Main(string[] args) List 1stInstruments = new List(); 1stInstruments.Add(new Instrument ()); 1stInstruments[0].modelNumber "ABC123"; 1stInstruments[0].guitarType "Electric Guitar"; 1stInstruments[0].brand = "Yamaha"; 1stInstruments[0].shape "Parlor"; 1stInstruments[0].size 1stInstruments[0].playingSide 40; %3D %3D "Left"; 1stInstruments[0].material %3D "Mahogany"; 1stInstruments[0].neckLength 22.5F; 1stInstruments[0].number0fStrings = 6; 1stInstruments[0].stringType "Steel"; 1stInstruments[1].modelNumber "ABC123"; 1stInstruments[1].guitarType "Electric Guitar"; 1stInstruments[1].brand = "Gibson"; 1stInstruments[1].shape = "Triple- 0"; 1stInstruments[1].size = 41; 1stInstruments[1].playingSide "Left"; 1stInstruments[1].material = "Poplar"; 1stInstruments[1].neckLength %3D 25.5F; 1stInstruments[0].number0fStrings = 6; 1stInstruments[0].stringType = "Steel"; 1stInstruments[1].modelNumber = "ABC123"; 1stInstruments[1].guitarType = "Electric Guitar"; 1stInstruments[1].brand = "Gibson"; 1stInstruments[1].shape = "Triple- 0"; 1stInstruments[1].size = 41; 1stInstruments[1].playingSide %3D "Left"; 1stInstruments[1].material = "Poplar"; 1stInstruments[1].neckLength 25.5F; 1stInstruments[1].number0fSstrings = 10; 1stInstruments[1].stringType = "Nickel"; 1stInstruments[2].modelNumber = 'ABC123"; 1stInstruments[2].guitarType = "Acoustic Guitar"; 1stInstruments[2].brand = "Seagull"; 1stInstruments[2].shape = "Concert"; 1stInstruments[2].size = 36; 1stInstruments[2].playingSide "Right"; 1stnstruments[2].material = "Alder"; 1stInstruments[2].neckLength = 24; 1stInstruments[2].number0fStrings = 12; 1stInstruments[2].stringType "Brass"; 1stInstruments[3].modelNumber "ABC123"; 1stInstruments[3].guitarType "Steel Guitar"; 1stInstruments[3].brand = "Guild"; 1stInstruments[3].shape = "Dreadnought"; 1stInstruments[3].size = 38; 1stInstruments[3].playingSide "Left"; 1stInstruments[3].material = "Maple"; 1stInstruments[3].neckLength 25.5F; 1stInstruments[3].numberofStrings 8; 1stInstruments[3].stringType "Steel"; 1stInstruments[3].modelNumber "ABC123"; 1stInstruments[3].guitarType "Bass Guitar"; 1stInstruments[3].brand = "Ovation"; 1stInstruments[3].shape = "Concert"; %3D 1stInstruments[3].size = 36; 1stInstruments[3].playingside = "Left"; 1stInstruments[3].material = "Spruce"; 1stnstruments[3].neckLength %3D 22.5F; 1stInstruments[3].number0fStrings = 6; %3D 1stnstruments[3].stringType "Nylon"; 1stInstruments[4].modelNumber = "ABC123"; 1stnstruments[4].guitarType %3D "Flamenco Guitar"; 1stInstruments[4].brand "Fender"; 1stInstruments[4].shape = "Parlor"; 1stInstruments[4].size = 41; 1stInstruments[4].playingSide "Right"; 1stInstruments[4].material = "Basswood"; 1stInstruments[4].neckLength = 25.5F; 1stInstruments[4].number0fStrings = 6; 1stInstruments[4].stringType "Bronze"; 1stInstruments[5].modelNumber "ABC123"; 1stInstruments[5].guitarType %3D "Acoustic Electric Guitar"; 1stInstruments[5].brand = "Washburn"; = "Jumbo"; 1stInstruments[5].shape 1stInstruments[5].size = 40; 1stInstruments[5].playingSide %3D "Right"; 1stInstruments[5].material = "Holly"; 1stnstruments[5].neckLength = 24; 1stnstruments[5].numberofStrings 12; 1stInstruments[5].stringType "Brass"; 1stInstruments[6].modelNumber = "ABC123"; 1stInstruments[6].guitarType "Electric Guitar"; 1stInstruments[6].brand = "Epiphone"; 1stinstruments[6].shape "Triple- 0"; 1stInstruments[6].size = 36; 1stInstruments[6].playingSide "Left": 1stInstruments[6].material = "Walnut"; 1stInstruments[6].neckLength 22.5F; 1stInstruments[6].number0fStrings 7; %3D 1stInstruments[6].stringType = "Nickel"; 1stInstruments[7].modelNumber "ABC123"; 1stInstruments[7].guitarType = "Resonator Guitar"; 1stInstruments[7].brand = "ESP"; 1stInstruments[7].shape = "Grand Concert"; 1stInstruments[7].size = 38; 1stInstruments[7].playingSide "Left"; 1stInstruments[7].material "Agathis"; 1stInstruments[7].neckLength 22.5F; 1stInstruments[7].number0fStrings = 12; 1stInstruments[7].stringType %3D "Steel"; 1stInstruments[8].modelNumber %3D "ABC123"; 1stInstruments[8].guitarType "Classical Guitar"; 1stInstruments[8].brand = "Gretsch"; 1stInstruments[8].shape = "Dreadnought"; 1stInstruments[8].size = 41; 1stInstruments[8].playingSide %3D "Right"; 1stInstruments[8].material "Ash"; 1stInstruments[8].neckLength = 24; 1stInstruments[8].numberofStrings 1stInstruments[8].stringType - "Steel"; 1stInstruments[9].modelNumber = "ABC123"; 1stInstruments[9].guitarType = "Acoustic Guitar"; 1stInstruments[9].brand = "Ibanez"; 1stInstruments[9].shape = "Jumbo"; 1stInstruments[9].size = 41; 1stInstruments[9].playingside "Left"; 1stInstruments[9].material = "Mahogany"; 1stInstruments[9].neckLength = 25.5F; 1stInstruments[ 9].numberofStrings = 6; 1stInstruments[9].stringType "Brass"; List 1staccessories new List(); 1staccessories.Add (new Accessories ()); 1staccessories[0].name "Guitar Strap"; 1staccessories[0].brand = "Fender"; 1staccessories[0].size = 70; // in inches 1staccessories[1].name = "Guitar Stand"; 1staccessories[1].brand = "Fender"; 1staccessories[2].name = "Tuners"; 1staccessories[2].brand = "Snark"; 1staccessories[2].size = 10; // in mm 1staccessories[3].name = "Guitar Picks"; 1staccessories[3].brand = "Fender"; 1staccessories[3].size = 0.46F; // in mm 1staccessories[3].name "Guitar Humidifier"; "Oasis 1staccessories[3].brand = -1"; 1staccessories[4].name = "Guitar String Winder"; 1staccessories[4].brand = "D'Addario Pro-Winder"; 1staccessories[4].name = "Amplifier"; "Peavy"; 1staccessories[4].brand = 1staccessories[4].size = 12

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!