subject

Create a new java application called "averagewithmethods" (without the quotation marks) according to the following guidelines. the program prompts the user for five to ten numbers, all on one line, and separated by spaces. then the user calculates the average of those numbers, and displays the numbers and their average to the user. the program uses methods to: get the numbers entered by the usercalculate the average of the numbers entered by the userprint the results with the whole number, a decimal, and two decimal positionsthe first method should take no arguments and return a string of numbers separated by spaces. the second method should take a string as its only argument and return a double (the average).the third method should take a string and a double as arguments but have no return value. for example, if the user input 20 40 60 80 program should give as the average of the numbers 20 40 60 80 100 is 60.00.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 16:00, ericadawn2852
How do i draw hello world in python and how do i make it loop?
Answers: 1
image
Computers and Technology, 22.06.2019 20:10, ianmartin6080
Assume that minutes is an int variable whose value is 0 or positive. write an expression whose value is "undercooked" or "soft-boiled" or "medium-boiled" or "hard-boiled" or "overcooked" based on the value of minutes. in particular: if the value of minutes is less than 2 the expression's value is "undercooked"; 2-4 would be a "soft-boiled", 5-7 would be "medium-boiled", 8-11 would be "hard-boiled" and 12 or more would be a "overcooked".
Answers: 1
image
Computers and Technology, 23.06.2019 01:30, winstonbendariovvygn
1. which of the following is a search engine? a) mozilla firefox b)internet explorer c)google d)safari 2. which of the following statements is true? a) all search engines will provide the same results when you enter the same query. b) all search engines use the same amount of advertisements. c) some search engines are also browsers. d) search engines often provide different results, even when you enter the same query.
Answers: 2
image
Computers and Technology, 23.06.2019 05:20, reeeeeee32
What did creator markus “notch" persson initially call his game
Answers: 1
You know the right answer?
Create a new java application called "averagewithmethods" (without the quotation marks) according to...

Questions in other subjects:

Konu
Mathematics, 13.12.2020 08:30
Konu
English, 13.12.2020 08:30
Konu
Chemistry, 13.12.2020 08:30