Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use your own descriptive names for each method. Comment on the names of methods you will be using. I encourage each of you to modify

Use your own descriptive names for each method.
Comment on the names of methods you will be using. I
encourage each of you to 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 !).

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