Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following are two arrays salary and jobs. Store both the arrays in the main method. Write separate methods, one method each, for each part

The following are two arrays salary and jobs. Store both
the arrays in the main method. Write separate methods,
one method each, for each part to compute and return the
answers back into the main method. Print each answer
from within the main method.
Use your own descriptive names for each method.
Comment on the names of methods you will be using. Modify some or all parts of the
problems slightly to make it your own unique problem.
Comment on your problem definition.
int []salary ={1830,600,1480,580,1040,2000,1460,
1150,510,1050,1760,1870,1430,1160,1770,550,
1570,2000,1180,630,840,1530,1210,1780,690,1110,
1020,660,890,620};
String []jobs ={"Sales","HR","R&D", "Sales", "Sales",
"ACCT", "HR"," R&D"," R&D", "Sales", "HR", "Sales",
" R&D"," R&D", "ACCT", "HR", "Sales", " R&D"," R&D",
"Sales", " R&D","HR","HR", "Sales", "Sales", "HR","HR",
"ACCT", "ACCT", "HR"};
1) Total number of employees in the sales department.
2) Average weekly pay of all employees in the sales
department.
3) Total number of employees in the sales department
making more than $1000 per week.
4) The lowest salary of all employees.
5) The job title corresponding to the employee with the
lowest salary.
6) Average weekly pay of all employees in all of the
departments except sales department. (Use the Not
Operator !).
Save the filename as Topchyan_assignment13.java

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

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

Q: Do you carry out PAs?

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago