Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started