Question
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
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