CAS Community   >   Resources   >  

Program! Linear Search through 1D array of string values, counting successful matches

Asks user for a target value, then searches through 1D array, counting number of successful matches.

Phil Gardner

Created by Phil Gardner
last edited Mar 15 2021 by Phil Gardner


Compile on Raspberry Pi, Apple Mac or Linux PC. Alternatively paste code into

Advice on how to compile programs hereā€¦

Downloaded 74 times.


This resource has attached files: to access these files, please tick the box below to assent to the license terms
License: The resources on CAS website are under Creative Commons Attribution-Share Alike 3.0 licence unless otherwise specified by the resource creators.

You must confirm that you have read and agree the licence's ToS before you can download the attachments of this resource.

I have read the licence agreement of this resource and agree to abide by its terms and conditions.

Feedback and Comments

Available when logged in (join via the front page, for free):
  • View 0 comments on this resource.
  • View resource history, links to related resources.
  • Leave feedback for the author(s), or help by editing the resource.

© 2021 BCS, The Chartered Institute for IT Registered charity: No. 292786
Using the websiteDisclaimer of liabilityCookies policyPrivacy notice