Purchase Solution

Java Application using a one-Dimensional array for this solution

Not what you're looking for?

Ask Custom Question

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

List any challenges that you actually encountered including compilation errors, logic errors, or runtime errors you had to resolve. Remember*** (This Solution must use a one-dimensional array in this solution.)***

Purchase this Solution

Solution Summary

Java applications using at one-dimensional array for a solution is examined

Purchase this Solution


Free BrainMass Quizzes
Basic Networking Questions

This quiz consists of some basic networking questions.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

C# variables and classes

This quiz contains questions about C# classes and variables.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.