Question: Write an application that will input five integers between 1 and 999 from the user. The program should print out the largest and smallest number.

Write an application that will input five integers between 1 and 999 from the user. The program should print out the largest and smallest number. It should print out how many of the numbers are even and how many are odd. It should print how many of the numbers are one digit, how many of the numbers are two digit, and how many of the numbers are three digit.

It should print out the sum of all even numbers and the sum of all odd numbers. It should print out the sum of all one digit numbers, the sum of all two digit numbers, and the sum of all three digit numbers. You may not use arrays or loops for this lab.

Language: java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!