Write a program which does the following: 1. Take 10 inputs in a loop from the user and store it in a double data type array. 2. Using a 'for-each' loop, calculate and print the total sum of even numbers in the array. 3. And print the average of all numbers in the array. 4. Write Javadoc comments for the class mentioning your name as author and a brief description of the class. 5. Submit the program and screenshots of the output and Javadoc HTML page. Example: If the array has {1,3,5,4,2,7,8,6,9,10}, then Sum of even numbers would be: 30 and the average would of all numbers be 55/10 = 5.5

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

Please use Java to complete the problem in the attatchment. Thank you!

Write a program which does the following:
1. Take 10 inputs in a loop from the user and store it in a double data type array.
2. Using a 'for-each' loop, calculate and print the total sum of even numbers in the array.
3. And print the average of all numbers in the array.
4. Write Javadoc comments for the class mentioning your name as author and a brief
description of the class.
5. Submit the program and screenshots of the output and Javadoc HTML page.
Example: If the array has {1,3,5,4,2,7,8,6,9,10}, then Sum of even numbers would be: 30 and the
average would of all numbers be 55/10 = 5.5
Transcribed Image Text:Write a program which does the following: 1. Take 10 inputs in a loop from the user and store it in a double data type array. 2. Using a 'for-each' loop, calculate and print the total sum of even numbers in the array. 3. And print the average of all numbers in the array. 4. Write Javadoc comments for the class mentioning your name as author and a brief description of the class. 5. Submit the program and screenshots of the output and Javadoc HTML page. Example: If the array has {1,3,5,4,2,7,8,6,9,10}, then Sum of even numbers would be: 30 and the average would of all numbers be 55/10 = 5.5
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Concept of Threads
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT