Skip to content

This program reads an unspecified number of integers and finds the one that has the most occurrences.

Notifications You must be signed in to change notification settings

katarina-vc/Count-Occurrence-of-Numbers-for-Data-Structures-Course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

**************** READ ME ****************************************************

Project 4 for Data Structures COP3530
by Katarina Capalbo 
Student ID: n01399315
Date: 6/28/2019

*****Description:************************************************************

CountOccurrenceOfNumbers.java:
 * This program reads an unspecified number of integers and finds the one that has the most occurrences. 
 * The input ends when the input is 0. For example, if you entered 2 3 40 3 5 4 –3 3320, the number 3 occurred most often. 
 * If not one but several numbers have the most occurrences, all of them should be reported. For example, since 9 and 3 appear 
 * twice in the list 9 30 3 9 3 2 4, both occurrences should be reported.


****** EXPECTED OUTPUT ******************************************************
See "Expected Output.png" file.

About

This program reads an unspecified number of integers and finds the one that has the most occurrences.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages