Question #2:- (Display the list records of the distribution class only) After solved the Question #1, attempt the following tasks: 1. Declare the collection object of the Grain-Distribution class using the List/Array(with 6 Length) dataType in Main-Method. 2. Assign all values of 6 records in your list/array object one by one. 3. Display all records on the screen of your Console or WinForm application. Expected output list records for the child class DistributionID DistDate DistQuantity Grainld GrainName cardHolderld cardHolderName cardHolderAddress cardHolderType COVID-19 COVID-19 1 Ahmed Orangi Town Korangi Jail Roal 1 01-Apr-20 5 kg 2 01-Apr-20 5 kg 3 01-Apr-20 2 kg 4 10-Apr-20 5 kg 5 10-Apr-20 5 kg 6 10-Apr-20 2 kg 1 Rrice 2 Flour 2 Bilal 3 Lentils (Dal) 3 Fahad 2 Bilal COVID-19 COVID-19 1 Rrice 2 Flour Korangi Jail Roal 3 Fahad 1 Ahmed COVID-19 COVID-19 3 Lentils (Dal) Orangi Town
Question #2:- (Display the list records of the distribution class only) After solved the Question #1, attempt the following tasks: 1. Declare the collection object of the Grain-Distribution class using the List/Array(with 6 Length) dataType in Main-Method. 2. Assign all values of 6 records in your list/array object one by one. 3. Display all records on the screen of your Console or WinForm application. Expected output list records for the child class DistributionID DistDate DistQuantity Grainld GrainName cardHolderld cardHolderName cardHolderAddress cardHolderType COVID-19 COVID-19 1 Ahmed Orangi Town Korangi Jail Roal 1 01-Apr-20 5 kg 2 01-Apr-20 5 kg 3 01-Apr-20 2 kg 4 10-Apr-20 5 kg 5 10-Apr-20 5 kg 6 10-Apr-20 2 kg 1 Rrice 2 Flour 2 Bilal 3 Lentils (Dal) 3 Fahad 2 Bilal COVID-19 COVID-19 1 Rrice 2 Flour Korangi Jail Roal 3 Fahad 1 Ahmed COVID-19 COVID-19 3 Lentils (Dal) Orangi Town
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 18RQ
Related questions
Question
Language C#
![Question #2:- (Display the list records of the distribution class only)
After solved the Question #1, attempt the following tasks:
1. Declare the collection object of the Grain-Distribution class using the List/Array(with 6
Length) dataType in Main-Method.
2. Assign all values of 6 records in your list/array object one by one.
3. Display all records on the screen of your Console or WinForm application.
Expected output list records for the child class
DistributionID DistDate DistQuantity Grainld GrainName cardHolderld cardHolderName cardHolderAddress cardHolderType
101-Apr-20 5 kg
2 01-Apr-20 5 kg
3 01-Apr-20 2 kg
4 10-Apr-20 5 kg
Ahmed
Orangi Town
Korangi
Jail Roal
Korangi
Jail Roal
Orangi Town
Rrice
COVID-19
2 Flour
2 Bilal
COVID-19
COVID-19
COVID-19
COVID-19
COVID-19
3 Fahad
3 Lentils (Dal)
1 Rrice
2 Bilal
5 10-Apr-20 5 kg
6 10-Apr-20 2 kg
3 Fahad
1 Ahmed
2 Flour
3 Lentils (Dal)](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F179b41f3-2e6d-4bc5-b96f-f8039f0817e8%2F3f47f295-b732-48a2-87ce-7c7177a7bf2c%2Fepydkcy_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Question #2:- (Display the list records of the distribution class only)
After solved the Question #1, attempt the following tasks:
1. Declare the collection object of the Grain-Distribution class using the List/Array(with 6
Length) dataType in Main-Method.
2. Assign all values of 6 records in your list/array object one by one.
3. Display all records on the screen of your Console or WinForm application.
Expected output list records for the child class
DistributionID DistDate DistQuantity Grainld GrainName cardHolderld cardHolderName cardHolderAddress cardHolderType
101-Apr-20 5 kg
2 01-Apr-20 5 kg
3 01-Apr-20 2 kg
4 10-Apr-20 5 kg
Ahmed
Orangi Town
Korangi
Jail Roal
Korangi
Jail Roal
Orangi Town
Rrice
COVID-19
2 Flour
2 Bilal
COVID-19
COVID-19
COVID-19
COVID-19
COVID-19
3 Fahad
3 Lentils (Dal)
1 Rrice
2 Bilal
5 10-Apr-20 5 kg
6 10-Apr-20 2 kg
3 Fahad
1 Ahmed
2 Flour
3 Lentils (Dal)
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
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
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT