Question: Good evening! Kindly answer this question accurately and fully. Thank you in advance!In a 2 D array, the contained values can be of different data
Good evening! Kindly answer this question accurately and fully. Thank you in advance!In a D array, the contained values can be of different data types. One way to manage this is to use the Object data type as
the data type of the array. Sample programs were posted in the File Manager. More guidance and help are to be provided.
Please use this D array for this part:
Object inputDatabase new Object;
a In the first lines, your program asks users for data of specific types.
b Then it displays the data it received from users in different views. The Data Type View must be able to automatically
detect the type of stored data for display. The Data Value View must be able to retrieve the data for display.
c Your program must behave and produce output identically to the demonstration in the screenshot below.
Row Please enter Integers:
Row Please enter Characters: b
Row Please enter Strings: hello how bye
Row Int, Char, String: d hola
Your array of multiple data types:
Data Type View:
Integer
Character
String
Integer
Data Value View:
a
helto
Integer
Character
String
Character
b
how
d
Integer
Character
String
String
c
bye
hola
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
