Number Analysis Program | Sololearn: Learn to code for FREE!

0

Number Analysis Program

Number Analysis Program Design and implement a program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and then display the following data: The lowest number in the array The highest number in the array The total of the numbers in the array The average of the numbers in the array function number20() { var array20numbers =[20]; var counter= 0; while (counter<21){ var input= prompt("enter a number"); array20numbers[counter]= input; counter++; } for(i= 0; i< array20numbers.length; i++) { document.write("<p> " + array20numbers[i]+ "</p>"); } }; var array20numbers =[20]; var counter= 0; while (counter<21){ index++ if else counter++; } for(i= 0; i< array20numbers.length; i++) { document.write("<p> " + array20numbers[i]+ "</p>"); } Im stuck from here

8/28/2018 8:55:45 AM

gobins e

2 Answers

New Answer

+3

If you are stuck, I'll try and code this in JavaScript for you. https://code.sololearn.com/cP7mI4yFyJyM/?ref=app

+1

ok Jay Matthews, is in there. thanks