Write a program that lets the user enter a series of decimal numbers (ie, numbers that may have a decimal point) that lie in the range -50,000 to 50,000. The user should enter 0 to signal the end of the series. The program must count the number of positive and negative numbers entered. After all the numbers have been entered by the user, the program should display the number of numbers entered, the total of the positive numbers, the total of the negative numbers, the average of the negative numbers, the average of the positive numbers, the average of all positive and negative numbers combined, and the largest and smallest numbers. Ensure that the sentinel value is not included in any of the statistics. The Scanner class must be used for keyboard input.
#Sales Offer!| Get upto 25% Off: