Question: Write a program in java that asks the user to input several numbers and calculate the summation and average. Requirements: This program will continue ask

Write a program in java that asks the user to input several numbers and calculate the summation and average.

Requirements:

This program will continue ask the user for another input until the user inputs -1.

Define a method inputCheck(Scanner scanner) with a return type as int. use it to check if the input is a integer value and return the integer value if it is.

Define two methods to calculate summation and average for the numbers. Both these methods have an integer array as the parameter and the result should be returned as the return value.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!