Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can you give step by step answer for the following showing the form and design.

ID: 3656489 • Letter: C

Question

Can you give step by step answer for the following showing the form and design. VB program to calculate the average salary of the company employees as well as the # of salaries above and below the average. Should ask for salaries of the employees of the company. Salaries should be in an array as they are received as input. If an employees salary is equal to the average it can be included. Input Validation:"Do not accept a salary that is zero or less". Must have a button to accept input of salaries, a button to display the average salary, a button to display the number of employee salaries that are above the average along with those salaries, a button to display the number of employee salaries which are below the average along with those salaries, and an exit button.

Explanation / Answer

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class AvarageTest { public static void main(String[] args) throws IOException { System.out.println("Input any No."); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String data = (String) br.readLine(); int num = Integer.parseInt(data); int sum = 0; float avg = 0.0f; for (int i = 1; i