Question: Problem: Write a Java program to read Nintegers into an array A and Find the sum of all negative numbers in array. Find the sum

Problem: Write a Java program to read Nintegers into an array A and

  1. Find the sum of all negative numbers in array.
  2. Find the sum of all positive numbers in array.
  3. Find the average of all negative numbers.
  4. Find the average of all positive numbers.
  5. Find the maximum value in array.
  6. Find the minimum value in array.

Write a program to insert element into an array “A” in specificlocation

For example

0 1 2 3 4

24

47

20

25

You needs to insert element 50 into position 2.

Step by Step Solution

3.46 Rating (169 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1 The solution sourcecode is given below i import javautil public class A1 private static Scanner sc... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!