Answered step by step
Verified Expert Solution
Link Copied!
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 2D 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 2D array for this part:
Object[][] inputDatabase = new Object[4][3];
a. In the first 4 lines, your program asks users for data of specific types.
b. Then it displays the data it received from users in 2 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 1| Please enter 3 Integers: 123
Row 2| Please enter 3 Characters: a b c
Row 3| Please enter 3 Strings: hello how bye
Row 4|1 Int, 1 Char, 1 String: 4 d hola
Your 2D array of multiple data types:
Data Type View:
Integer
Character
String
Integer
Data Value View:
1
a
helto
4
Integer
Character
String
Character
2
b
how
d
Integer
Character
String
String
3
c
bye
hola
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students explore these related Databases questions