Question
Write a well-documented (commented) program, Distribution100, that takes integer command-line arguments. The first argument would be the count of the remaining arguments that are between
Write a well-documented (commented) program, Distribution100, that takes integer command-line arguments. The first argument would be the count of the remaining arguments that are between 1 and 100 (inclusive of 1 and 100). It then prints out the count of numbers entered that are less than or equal to 50 and the count of numbers that are greater than 50 from those remaining arguments. (MUST HAVE COMMENTS/WELL-DOCUMENTED)
A sample run would be as follows.
> java Distribution100 15 5 82 2 1 74 19 47 64 39 77 25 99 100 1 10
9 numbers entered are less than or equal to 50.
6 numbers entered are greater than 50.
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