Question: I need C# program for following Toy management Question please give proper code in C # only Note: You need to press Final Submit for





Note: You need to press "Final Submit" for your program to be considered for evaluation auto closed due to time ou Question Text Program Editor Title Toy based application to do a cerix 20213641647.TX Cro241647.TX 3641 20 Sed on the constraints as g Name String Category-String Price double Quantity.int isPlastic-bool e a class called Toy with the tea construcce 41647.TXCPA Generate public properties. Create a Toy class which takes parameters assign the values for all of the attributes 2018 Jass ToyStore with attribute & method given below name, category, price, quantity and isplastic then 20213641647 TX Compilet Code Save Version Note: You need to press "Final Submit" for your program to be considered evaluadon. auto-closed due to time out. Create a class ToyStore' With attribute & method given below Program Editor a Attributes 36416 A list of 20802490 Poy, named as toylist 208934900CT20213641647.TX A method named FindToywith MaxQuantityByCategory: This method will take string parameter category as input it should return the Toy object which is having maximum quantity for 1 All the 20 given category: Note +++ are case insensitive 2. In e testcase input boolean value is given as "tate or "false" (all in small letter) however, in the putput it is printed as "True" or "False No need to do anything It will be automatically printed as "True" or "Falsey CT20213641647.TXO Compile Code SAVEC Note: You need to press "Final Submit" for your program to be considered for evalua auto closed due to time QUILIIS PS e or Fase No need to do anything. It will be automatically printed as Program Editor "True" or "False") Instructions Write main section of a code sa T202236416 coaC120213641647.1) 1. You would require write the main section corrusterely, hence please follow the 2089ctions for the same 2. You would require writing main program which is inline to the "Sample input description" section and to read the data in the mentioned below 3. Create an manager for ToyStore dass of Toy after reading the attribute data related to it with the given sequence of 4. Create an eme sequence as arguments to fulfil the constructor res 20213641647.TXO 934 Add the object created above to the list named toyList of ToyStore object manager This step repeats for the number of Toy objects, Compile Code PE Add the object created a love to the list named "ToyList of ToyStore object manager This step repeats spr the number of Toy objects. mentioned in 5. Next road the category as input and call meu. 0213641647.14 02021 Pirst line of input (testcase input) FindT Taywith MaxQuantityByCategory if no Tours found having category same as input category then print "No toy found with the given category n otherwise print {name}S[category}{price}{quantity)s[isplastic). excluding the curly braces and double quotes for the Toy object returned maximum quantity Sample Input Demon method having @C20213641647.TXE a. First Inpurline represents the number of of Toy to be created b Next 5 lines of input will represent name category, price, quantity and isplastic for a toy object. This step of reading "5 lines of input will be repeated for the number of objects, mentioned in the first line of input CO for 20893490@CT202 Tuto Pigeon 250 15 true Dora Hawk 700 30 false 2001 2000 @CT20213641647.TXCPA 20893490@CT20213641647.TXC 750 55 true Babushka 29933498 a T20213641 20893490@CT2021364 Car Plastic 800 90 true Hawk Output 29893490220213641647. TXCPA 20893490@CT20213641647.TXC Instruction Kindly mention class name as MyClass
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
