954,554 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Java Parallel Array Find the Mode

* This program inputs ten integers and
* displays the mode using parallel arrays.
* Use a method to calculate the mode.

This is my specs. I cannot figure out a solution as to how to find the mode using only two arrays. Help would be gratefully appreciated

rcogq7
Newbie Poster
2 posts since Oct 2010
Reputation Points: 10
Solved Threads: 0
 

I guess the "parallel arrays" 1 & 2 contain (1) each value that occurs in the source data and (2) the number of times that values appears. Then you can search (2) for its max and get the corresponding value from (1)

JamesCherrill
Posting Genius
Moderator
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: