Write an application inputs ten numbers from the user


Discuss the below:

Q1: Write an application that inputs ten numbers from the user, each number can be between 10 and 100, inclusive. As each number is read in determine if it is a number already entered. If it is a duplicate move on to the next number, if it is unique store the number in the array. After all ten numbers have been entered display the complete set of unique numbers that were entered. You have been given the application but are required to develop the NumberKeeper class. Notice that not all methods will be used in actual application, however we want to always design robust classes. NumberKeeper UML is as follows:

NumberKeeper
---------------------
- _numbers[10] : integer
- _current Posistion : integer
---------------------
+ NumberKeeper()
+ acceptNumber(newNumber : integer)
+ printNumbers()
+ getLastUniqueNumberEntered() : integer

Q2: List any challenges that you actually encountered including compilation errors, logic errors, or runtime errors you had to resolve.

 

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write an application inputs ten numbers from the user
Reference No:- TGS01934867

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)