What Does This Program Do Acsl

If the values a[0.n-1] do not change between two program states indicated. C and hence ACSL, does not support an & type constructor (“declarator”), we.

ACSL Contests [American Computer Science League] American Computer Science League Contests There are 4 ACSL Contests spaced throughout the year (from December to April). For a list of which categories will be tested during each contest, At WMCI, we register in the Senior-3 and/or Intermediate-3 divisions. Although each of our team members scores are ranked individually, our top 3 student scores from each contest contribute to the WMCI school score. Format There are 2 parts to the contest. The first part is a 30 minute theory quiz.

There are 5 questions, and each question is marked as either right or wrong. No calculators are allowed! For the topics listed below, there are 2 questions on each of the first two topics and 1 question on the third topic for a total of 5 questions. The second part is a programming problem. You can use any language you want to solve it (most students use Python, C++ or Java). You have 72 hours to come up with a solution to the programming problem and submit it to Schellenberg.

This section is also worth 5 marks, and is graded by passing in 5 test cases. You get one mark for each test case for which your code produces the correct output. Practicing/Getting Ready Some things you may choose to do to help you prepare for the ACSL Contests include: • come to our Wednesday meetups, where we practice previous ACSL problems • check out the tutorial pages to get ready for the theory portion of the contests. To access the tutorials, click on • work on previous problems on your own -- ask Mr. Schellenberg for these • Dates • Contest 1 - Thurs, Dec 13, 2018 at lunch in room 219 • Contest 2 - Wed, Jan 16, 2019 at lunch in room 219 • Contest 3 - Wed, Mar 6, 2019 at lunch in room 219 • Contest 4 - Wed, Apr 3, 2019 at lunch in room 219 Any WMCI student may participate in any of the ACSL contests. All you need to do is to show up in room 219 at lunch on the date of the contest.

However, note that without coming to our Wednesday lunch practice sessions, it will probably be difficult to do well! Audio

The dialect of BASIC t hat we will use is ACSL BASIC. The questions will emphasize elementary structured flow of control rather than the parti cular syntax of the dialect. Students familiar wit h BASIC or any other high-level language (e.g., Pascal, PL/C, C, FORTRAN), should be able to master this category with just a little additional preparation. Topics covered in the Senior and Intermediate Divisions include (but are not limited to): the evaluation of arithmetic expressions, loops (single and nested), branching, subscripted variables, multi-dimensional arrays, and string manipulations.

In the Junior D ivision, the specific topic to be tested is given in the title of the cate gory. The following system functions may be used: INT, ABS, LEFT$, RIGHT$, MID$, LEN, VAL, STR$, SQR and SGN.

The functions NOT, AND and OR will also be used; they have the order of precedence listed (that is, NOT is highest and OR is the lowest). The following statements may be used: INPUT, DATA, READ, RESTORE, PRINT, TAB, FOR/NEXT, GOTO, GOSUB, RETURN, IF-THEN, IF-THEN-ELSE, LET, REM, DIM, DEF (for user defined functions), END and STOP.

Files and matrix commands will NOT be used. Assume that our programs are immune to syntax. Program that uses an array with 100 elements). While most commands are functions that are the same on each system, the following frequently vary from system to system.

Below we have listed these functions and the interpretation that will be used for the contests. INT(A) returns the largest integer not greater than A. LEFT$(A$,N) returns a string consisting of the first N characters of the string A$. RIGHT$(A$,N) returns a string consisting of the last N characters of the string A$.

MID$(A$,A,B) returns a string consisting of the B characters beginning with the A.