Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java (Textpad, Eclipse) A. Working with an assigned partner, research and select an example of real life data which can be represented in a 2

Java (Textpad, Eclipse)

A. Working with an assigned partner, research and select an example of real life data which can be represented in a 2 dimensional array.

Write a program which does the following:

1) Create a 2 dim array containing the information using an initializer list.

2) If you have additional information which needs to be printed related to the data, you can use other variables to store the information. For example, consider the table below:

Job Description Average Salary # of Employment

1 General Internists

199,590

1,550
2 Obstetricians and Gynecologists

197,130

560
3 Other Physicians and Surgeons

195,160

13,670
4 Nurse Anesthetists

185,970

340
5 Natural Sciences Managers

$174,250

4,590
6 Judges, Magistrate Judges, and Magistrates

$166,850

970
7 General Pediatricians

$159,250

1,540
8 Family and General Practitioners

$155,470

2,130
9 Marketing Managers

$153,890

11,260
10 Computer and Information Systems Managers

$153,680

13,930

the statistics were from http://www.usawage.com/high-pay/jobs-state-new_jersey.php

A two dim table with 10 rows and 2 columns can be used to represent the percent of women and percent of men for each major.

The name of the majors can be stored in a one dimensional array of Strings.

There are other better ways to represent the information but for now this will do nicely.

3) The program should print a line explaining what the data in the array represents.

4) Print the information in table format.

5) In a comment, cite the source of the information

B.Write a program which does the following:

* Define a 2 dimensional arrays of doubles (3 rows by 3 columns using an initializer list (not ragged).

*Print the numbers entered by the user in row major order

*Print the numbers entered by the user in column major order

C. Write a program which does the following:

*Define a 2 dimensional array of 2 rows and 3 columns using an initializer list.

*Find the lowest and highest value using a loop.

*Print the highest value and the lowest value in the array

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

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

Determine miller indices of plane A Z a/2 X a/2 a/2 Y

Answered: 1 week ago

Question

1. Why do people tell lies on their CVs?

Answered: 1 week ago

Question

2. What is the difference between an embellishment and a lie?

Answered: 1 week ago