Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

https://blackboard.kean.edu https://blackboard.kean. CPS 2231 Chapter 8- Lab 2 2019 Working with an assigned partner, research and select an example of real life data which can

image text in transcribed
image text in transcribed
https://blackboard.kean.edu https://blackboard.kean. CPS 2231 Chapter 8- Lab 2 2019 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 (name-xxx andxxx lab2): 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: 4TOP 10 MAJORS WITH HIGHEST CONCENTRATION OF MEN 97 Naval Architecture and Marine Engineering Militory Technologies Electrical and Mechanic Repairs And Technologies Industrial Production Technologies Mining and Mineral Engineering 93 91 91 10 10 10 90 90 Electrical 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 The assignment will be completed on one computer. Both students should submit the one class file on Blackboard. Please do not use the table in my example 6 d Assignment... https://blackboard....https://blackboar https://blackb CPS 2231 Chapter 8 Lab 1 2019 Write a program which does the following (name xxx_Chapter81): 1) Asks the user for the number of rows 2) Asks the user for the number of columns 3) Create an array with the number of rows and columns entered by the user. 4) Using a nested loop, ask the user for the value to enter in the array 5) Store the value in the array (row by row) 6) Pass the array to a method which prints the array import java.util.*; public class XXX_Chapter81 public static void main(String[] args) ( //creates array and stores values with input from user printArray (board); public static void printArray (int [) [] board) //prints the array Enter the number of rows 2 Enter the number of cols enter a number enter a number enter a rimber enter a number enter a number enter a number 11 2 31 14 561

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions