10.07.2015 Views

ACM Programming Competition Worksheet 4 Arrays, Vectors and ...

ACM Programming Competition Worksheet 4 Arrays, Vectors and ...

ACM Programming Competition Worksheet 4 Arrays, Vectors and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Task1. A program is required that will search a series of numbers for another number (inputfirst). If the number is found, then the program must output the series of numbers withoutthe one found. If it is not found then the program will output not found.It must deal with multiple sets of data.For example, given the following data:12 23 45 67 89 12 45 23 8925 67 14 83 92 8356 45 56 21 89 10 11 33 100 31 28The output would be:23 45 67 89 45 23 89\\25 not found\\45 2 89 10 11 33 100 31 282. Come up with some more test data <strong>and</strong> output: think of boundary conditions, unusualconditions etc.3. Write a program to perform this task.4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!