Back

Challenge Set 13

Unlocks after Activity 1.24. Two code challenges and a review set.

divider

What This Set Is For

Both challenges are about never typing a number the array can tell you. Last in Line is .Length and the last element, and nothing else. Safe Lookup is Challenge Set 12's Seat Finder grown up: the person picks the position, and this time the program does not crash when they pick one that is not there.

Neither one needs a loop over the array. Walking through every element comes in Activity 1.25.


Both Are Briefs

Nobody lists the steps on either page. You get a result somebody wants, and you write the requirements list first — input, calculate, output, and every decision you had to make yourself.

If that is unfamiliar, read it once here: How to Read a Brief, in Challenge Set 1.


The Challenges

Last in Line is one star: three lines of output from one array, with no input. Safe Lookup is two stars because a position can be wrong at either end — and a check that only guards one of them passes every test you think of first.

These are options, not a checklist.


The Question Set

Three pages, and they are their own homework drop. None of them is about writing a program.

All three are about where C# and the exam disagree on lists — counting from 0 or from 1, and whether ← copies. The debug page's four programs fail in four different ways, and naming the kind of failure is part of each answer.


Which Homework These Feed

The three review pages are one drop, due after this activity.

Part 4's pool keeps growing. These two challenges join Challenge Set 12's two, and Activity 1.25 adds more. The first build drop is collected after this activity, and a second one after Raylib Lab 6, so nothing you finish early is wasted.

The dropbox says how many. This page only says what is available.

Commence Challenges