Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

8:41 *11)26 Due Monday Salary 100 points Add class comment Create a class called Salary with: 2 instance variables: 1) 2d array of int called

image text in transcribed
image text in transcribed
8:41 *11)26 Due Monday Salary 100 points Add class comment Create a class called Salary with: 2 instance variables: 1) 2d array of int called salaries populated with the following data: column1: 2) 2d array of double called scatter populated with the following data: column1: 2.003.000.000.006.003.001.001.000.005.004.00 2.004.002.003.002.002.000.001.000.000.004.00 column 2: 0.002.002.000.005.002.000.002.000.001.000.00 2.004.001.002.002.001.003.002.000.001.006.00 a) write a method called step that: Your work Assigned Add private comment 2) 2d array of double called scatter populated with the following data: column1: 2.003.000.000.006.003.001.001.000.005.004.00 2.004.002.003.002.002.000.001.000.000.004.00 column 2: 0.002.002.000.005.002.000.002.000.001.000.00 2.004.001.002.002.001.003.002.000.001.006.00 a) write a method called step that: returns a 2d array of int, the same size as salaries, populated by calculating the difference between each row in a column the first row first column is populated by subtracting row 2 from row 1 the last row should be 0 first 2 rows should be: 550510 630380 b) write a method called stepCost that: ..- creates a 2 d array of doubles, the size of salaries, populated by: -.. calling the step method ..- multiply each value in the array returned by step() by it's corresponding value in scatter - return the new array first 2 rows should be 1100.00.0 1890.0760.0

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

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions

Question

=+applying to all or most employers and employees?

Answered: 1 week ago