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
- Find the sum of all negative numbers in array.
- Find the sum of all positive numbers in array.
- Find the average of all negative numbers.
- Find the average of all positive numbers.
- Find the maximum value in array.
- 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 The solution sourcecode is given below i import javautil public class A1 private static Scanner sc... View full answer
Get step-by-step solutions from verified subject matter experts
