Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Java program named RealNumbers that asks the user to enter 10 real numbers and store them in an array named numArray. Then the
Write a Java program named RealNumbers that asks the user to enter 10 real numbers and store them in an array named numArray. Then the program should do the following:
a) Display the array numArray in reverse.
b) Display the total of the numbers in the array numArray.
c) Display the maximum number in the array numArray.
Sample Run of the Program
Enter 10 values:
5.4 7.9 32.8 41.6 12.7 6 7.2 6.7 27.2 3.1
The array in reverse order:
3.1 27.2 6.7 7.2 6.0 12.7 41.6 32.8 7.9 5.4
The total of the array numbers is 150.6
The maximum number in the array is 41.6
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started