Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PART 1 2 D Array , 3 points : The English alphabet has 26 characters. Please use a 2D array to store the English alphabet.

PART 1 2 D Array , 3 points :

The English alphabet has 26 characters. Please use a 2D array to store the English alphabet. Your array must have 7 rows and maximum 4 columns.

Create method display2 DArray(char a[][]) and use it to display the contents in your array.

Your programs output must be identical to the output to the right.

PART 2 2D Array of 3 Data Types , 7 points :

In a 2D array, data types of different items (in a same row and in different rows) can be different. One way to manage this is to use a 2D array of o bjects . (More guidance to be given in class. And sample programs to be posted in the File Manager.)

Please use this 2D array for this part:

Object [][] inputDatabase = new Object[4][3];

Your program asks users for data for all of the array items (first 4 lines in the sample output) . Before terminating, your program displays the array (Your 2D array of 3 types:) .

Your programs output must be identical to the output to the right.

PART 3 PlantGrowth Database , 15 points :

Add the Month column to your PlantGrowth table .

PART 4 Table header and formatting, 3 possible Extra Credit p oints :

1. Store the table header as part of the 2D array. T he table header is the first row of the report table:

Index Month Temp Rain Growth Plant Height

B riefly explain your approach in minimum 3 complete sentences. 2 point s

2. Display the contents of the Growth column correctly; Show positive or negative sign of each number. 1 point

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

Step: 3

blur-text-image

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions