Friday
March 27, 2015

Homework Help: Programming Language

Posted by Josh on Wednesday, October 28, 2009 at 4:31am.

Create a method called countSelected, which takes an array of integers and an integer as input parameters and returns the number of occurences of the integer in the array.

Example:
data:{2, 1, 1, 8, 1, 0}
select:1
==> 3

public int countSelected (int[] data, int select) {

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

computer science - Create a method called countZeros, which takes an integer ...
computer science - 9.10: Reverse Array Write a function that accepts an int ...
Computer Science - Write a class “Program1” that has the method “allLess” (below...
programming - Write a program which allows user to enter 10 student names and ...
programming - How do i read in a vector of integers with a space inbetween (i.e...
C++ Programming - Design and create a class named Stats that has an array of 12 ...
college - Write a C++ program to fill an array with 6 numbers, and then reverse...
Programming - Create the logic for a program whose main() method prompts a user ...
assembler language - write an assembly language subordinate count according to ...
PROGRAMMING - 1. Make a C program that will input two integers and then to enter...

Members