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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 18RQ
icon
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)
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
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Introduction to computer system
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT