![]() |
![]() |
Delete Duplicates Computer Programming ProblemProblem DescriptionCreate an application that removes duplicate entries from a list of numbers. Your application will process a maximum of 20 integer numbers. Each number will be equal to or greater than zero. You do not need to edit for floating point numbers or invalid characters. Twenty is the maximum number of values to be entered. The user must be able to enter 0 numbers, 1 number, 20 numbers or any amount between 1 and 20. If you create a command line application, allow the user to enter -1 to indicate no more numbers will be entered. Once the input is complete, the application must indicate which numbers are duplicated and how many duplicates existed for each number. InputInput will be a series of integers separated by at least one space. Any number of integers from 0 to 20 may be entered. The user must be able to enter 0 numbers, 1 number, 20 numbers or any other count of numbers between 0 and 20 inclusive. You do not need to edit to ensure only numbers are entered. Only integer numbers will be entered. Your values may be input as a single set of data or as a grouping of individual pieces of data. Your application can be created to process a single set of data. That is, after processing a set of data, your application can end. You can then start the application again and enter a second set of data. If you use a graphical interface (Visual Basic, C#, ...) you can enter the data in text boxes and display the results in text boxes or labels. However, a graphical interface is not required for this application. If you create a command line application you can prompt for the input numbers one at a time or enter them all in a single input statement. OuputPrint the original list of numbers entered. Next print a listing of any number that was duplicated and the number of duplicates. Finally print the revised list of numbers minus any duplicates. Sample Input/OutputThe last row in the table above indicates that no values were entered.
|
Want more information?Melinda White Get Admissions Info Did you know? |
| Altamonte Springs Campus 850 South State Road 434 Altamonte Springs, FL 32714 | Heathrow Campus 1055 AAA Drive Heathrow, FL 32746 | Oviedo Campus 2505 Lockwood Boulevard Oviedo, FL 32765 | Sanford/Lake Mary Campus 100 Weldon Boulevard Sanford, FL 32773 |
| A Diverse Learning Community...An Equal Access/Equal Opportunity College © Seminole Community College, 1996-2008 Privacy Policy About Us | Contact Us | Site Map | |||