Write a Java program which reads a one-dimensional integer array from the user. The program should calculate maximum and
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a Java program which reads a one-dimensional integer array from the user. The program should calculate maximum and
Write a Java program which reads a one-dimensional integer array from the user. The program should calculate maximum and minimum values among the values that is included in the array as both positive and negative. For example, for the array (-9,5, 1, 2, 3,-3, 2, -4,-5) only 3, -5, -3,5 will be included in the calculation as the array does not contain negative of other values. Additionally, the average of the negative numbers in the array should be printed.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!