[SOLVED] Java application called "Averager"

19.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (2 votes)

Java application called “Averager” (without the quotation marks) to get positive integers (i.e., any integer greater than 0) from the user, each preceded with a suitable data entry prompt, until the user enters -1 (the sentinel). Use a do-while loop. Compute the average of the series of integers and print the average. Be sure to format the average with two decimal positions. Don’t include the sentinel in calculation of the average. Include suitable data validations for invalid data (e.g. the user enters a letter instead of an integer), but stay in the loop until the sentinel is entered.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.