Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

Compare the mean squared errors of b1 and b1.2 in Section 8.2.2.

Answered: 1 week ago

Question

Develop a program for effectively managing diversity. page 303

Answered: 1 week ago