Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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