70 765
Assignments Done
Successfully Done
In March 2019

Answer to Question #54759 in AJAX | JavaScript | HTML | PHP for Scott

Question #54759
Create a script called odd_even.js. Write a program that generates 100 random numbers and keeps count of how many of those random numbers are even and how many of them are odd. Sum the even numbers and sum the odd numbers. Use a function to check if a given number is even or odd and use a function that returns the sum of a given array. Display the results as:
Even Number Count: 72
Odd Number Count: 28
Sum Even: 560
Sum Odd: 433
Expert's answer

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions