Back

Build 2: The Long One

divider

The Brief

Four sessions of building. You choose what to make: a console program or a Raylib program, your call. 100 points, the largest single item in the quarter.

Only two things are imposed, and they are the same two the Create task will impose in Quarter 3: it must use an array, and a method you wrote, with a parameter that changes what it does.

Everything else is yours. That is not generosity; it is the point. The Create task hands you a blank page and eight sessions, and this is the last time you find out what you do with one while it still only costs points.

Before the gate, read Sample Project: How Small Is Big Enough. It is a whole program that meets every requirement in 39 lines, and it is the size check for your plan.

There is a practice Personalized Project Reference, homework due at session 49: four code segments from your program with every comment removed. It is explained below. Read that part before session 48, not on the night.

No video. That part of the Create task is mechanical (one minute, no narration, show input and output) and it arrives with the real thing in Quarter 3. Nothing about it needs four sessions of rehearsal.

divider

Build 2

The Long One

Key Concepts

Planning Four Sessions, Not One

All Six Requirements

Coming Back Cold on Day Three

The Practice Project Reference

You Have Done This Once

At Build 1 you wrote a plan, and the next session you read it out loud and said what actually happened. Most of you said “I had to cut…”

Today that memory is the most useful thing in the room. Before you write a word of this plan, remember what you dropped last time, and why.

The Arithmetic Is a Trap

Build 2 has twice the sessions. Decide before the answer appears.

Value Trace
BUILD 1 was two sessions.
A person could use it in under two minutes.
BUILD 2 is four.
So it can be twice as big?

The Arithmetic Is a Trap

Value Trace
BUILD 1 was two sessions.
A person could use it in under two minutes.
BUILD 2 is four.
So it can be twice as big?
No.

Four sessions do not buy twice the program, because day three is not like day one.

Day Three Is Not Like Day One

You come back to code you wrote two sessions ago and have to read it like someone else's. You meet a bug you cannot make happen again. You decide halfway through that the structure is wrong.

About half of a long build is spent on the build itself: rereading, re-finding, and repairing. A two-session program fits in your head; a four-session one does not.

That Is Why This Block Is Long

Build 1 taught scoping: how big a thing you can make. Build 2 teaches duration: how to keep one program going for days.

The Create task is eight sessions. If Build 2 were short, the Create task would be the first time you had ever carried one program past two days, and it is 30% of the exam.

Two Requirements Imposed

An array the program actually needs. Delete it, and the program should break.

A method you wrote, with a parameter that changes what it does. Pass a different argument, and something different should happen.

That is all. The idea is yours.

But Aim at All Six

The Create task scores six requirements. Build 1 asked for four, and the other two (calling your method, and output that depends on the input) came almost free.

All six are on this rubric. Hit them here and Quarter 3 is a repeat, not a first attempt.

And Number Four Again

Sequencing, selection and iteration inside your method's body. You cleared it once at Build 1.

It gets checked again at session 47, for everyone, because people who got away with it once assume they have it. Session 47 is early enough to restructure. Session 48 is not.

If You Build in Raylib

The while loop that keeps the window open, and the key checks inside it, belong to the main program. The College Board does not count the main program or event handlers as yours.

You need a method of your own beside them, with its own loop and its own if, called from the main loop. You have heard this at Build 1 and in every Raylib lab since.

Today: The Gate

No code until your plan is approved. Same rule as Build 1, and the plan is longer.

It now includes what will be done by the end of each session, and one line naming what you will cut first.

Name the Cut Now

Everyone cut something at Build 1, and most people decided what to cut at the last minute, with a broken program in front of them.

Deciding what goes while you are calm is worth more than deciding at session 48. A project cut back to its named first cut, and working, loses nothing on the rubric.

And One New Thing

A practice Personalized Project Reference, due at session 49: four code segments from your own program. With every comment taken out.

And One New Thing

The real Create task submits your code twice. The full program with comments, which is required. And the Project Reference, four segments without them.

Comments left in the Project Reference score zero on the whole Create task, including the written answers you give in May. That is 30% of the exam, lost to a copy-and-paste habit. This is where you rehearse it for 15 points instead.

Session 49

The quarter checkpoint first: exam format, 30 minutes.

Then a gallery walk: everyone runs their program at their own computer, half the room walks around while the other half demonstrates, then you swap.

Today's Objectives

  • Scoping a four-session project against your own Build 1 experience
  • Naming, in advance, what you will cut first
  • Planning session by session rather than as one block of time
  • Identifying which of your methods meets requirement 4

Key Terms

Personalized Project Reference
Four code segments from your program, submitted with the Create task, with no comments.
Gallery walk
Everyone runs their program; half the room walks around while half demonstrates, then they swap.

'F' → Fullscreen

divider

All Six Requirements

Two are imposed and all six are on the rubric. These are the Create task's own requirements, and they will not change in Quarter 3. It is written for every language, so it says list where C# has an array and procedure where C# has a method.

  1. Input. Your program asks for something and uses the answer: Console.ReadLine() in the console, or a key check such as Raylib.IsKeyPressed in Raylib.
  2. An array that stores data and that the program needs. Imposed. The test is deletion: remove it and the program should break.
  3. A method you wrote, with a name, a return type if it needs one, and a parameter that affects what it does. Imposed.
  4. An algorithm with sequencing, selection and iteration inside that method's body. Checked for everyone at session 47.
  5. Calls to that method. If it is never called, C# warns you with CS8321, the warning from Activity 2.1.
  6. Output based on the input and what the program does. Text, pictures, or sound.

Requirements 5 and 6 arrive almost free if the rest are real. They are on the rubric anyway, because a method that is never called is a method you did not need.

divider

Requirement 4, and Why It Gets Checked Twice

This is the requirement that a program meets somewhere and misses inside the method. Build 1 drilled it and you cleared it. That is exactly why it is worth checking again: a student who got away with it once assumes it is handled.

The shape: everything between one method's braces
int PriceFor(int tier)
{
int total = 0;
for (int i = 0; i < prices.Length; i++)
{
if (tiers[i] == tier)
{
// ... add it up
}
}
if (total == 0)
{
// ... nothing in that tier
}
return total;
}

A statement that just runs, a loop, and a decision, all between the braces of a method that takes a parameter. The bodies are left out on purpose; your program is yours.

At session 47 you will put a finger on your method's opening and closing braces and name the three structures between them. If one is missing, you restructure that session. The sample project's near miss is this check, already worked.

divider

How Big Is Four Sessions?

Build 1's rule was that a person could use the finished thing in under two minutes. There is no rule like that here, because the limit has changed shape. Here is the honest guidance. A four-session project is roughly a two-session project with:

  • a second thing it can do, chosen by the user;
  • data that lasts the whole run, rather than one answer;
  • output somebody would actually want to look at;
  • and a whole session of finding out what is wrong with it.

That last line is not padding. It is what usually happens, and plans that do not budget for it are the ones that get cut in half at session 48.

If You Want a Starting Point

You do not have to use one of these. They are here so nobody spends session 45 staring at a blank page.

  • A study planner. Add subjects with a time cost, then ask it what fits in the hours you have tonight. This was Build 1's over-scoped example; at four sessions it is about right if you keep it small.
  • A quiz that keeps score across rounds and tells you which category you are weakest in.
  • A budget tracker. Log spending against categories, then report by category, with a warning when one goes over.
  • A team drafter. Players with ratings, split into balanced teams, with the difference between the teams reported.
  • Raylib: a drawing tool where keys place shapes from a palette you can cycle through, with an undo.
  • Raylib: a dashboard for a dataset you care about, with more than one view of it. Lab 11's win chart is a starting point.
divider

Session 45: The Gate

No code until your plan is approved. Same rule as Build 1, and the plan is longer this time.

The Build 2 plan
Program: <name>
What it does: <two sentences>
Input: <what you ask for, or which keys>
Array: <its name, what is in it, why the program needs it>
Method: <its name, and its parameter>
Inside it: <the loop, and the decision>
Output: <what comes out, and what it depends on>
Four sessions. What is done by the end of each one?
45 the plan (this)
46 ...
47 ... (requirement 4 gets checked this session)
48 ...
What I will cut first if I run out of time:
<name it now, while it is cheap>

Two parts of that are new, and both matter more than the idea.

  • The session-by-session plan. Four lines, and not “build the main part”: something you could be held to. This is the first time you have had to plan duration rather than size.
  • The line naming what you will cut first. Everybody cut something at Build 1. Deciding now, calmly, is worth more than deciding at session 48 with a broken program.

Expect to be asked about Build 1. What did you drop, and what is different about this plan? A plan that ignores what happened last time is not a plan; it is hope.

divider

Sessions 46–48: The Build

Three sessions of work. Two things happen inside them that are not just “keep going.”

Session 47: The Requirement 4 Audit

Everyone gets checked. Point at your method's braces and name the statement that just runs, the loop, and the if between them. If one is missing you restructure that session, which is why the check is at 47 and not at 48.

Every Session: The Coming-Back-Cold Problem

You will come back to code you have not read for days. Spend the first three minutes of each session reading what you wrote last time, before you type anything. It feels like a waste. It is the cheapest three minutes in the block.

And before you leave, write down what you were in the middle of, in one line, as a comment at the top of your program. Future you will have forgotten.

divider

The Practice Project Reference

Homework, assigned at session 47 and due at session 49. Four code segments copied from your own program:

The four segments
PROCEDURE (i) the method itself: its name, its parameter,
and an algorithm with sequencing, selection
and iteration inside its body
PROCEDURE (ii) where you call it
LIST (i) where data goes into the array
LIST (ii) where that same array's data gets used

And every comment taken out.

In your program: fine
// Counts the classes under the cutoff and prints each one.
int ClassesBelow(int cutoff)
{
int count = 0;
for (int i = 0; i < classNames.Length; i++)
{
if (averages[i] < cutoff) // below the line
{
In the Project Reference: required
int ClassesBelow(int cutoff)
{
int count = 0;
for (int i = 0; i < classNames.Length; i++)
{
if (averages[i] < cutoff)
{

That includes comments at the end of a line, like // below the line, and /* */ blocks. Keep the code exactly as it is otherwise.

Why You Are Practicing This Now

In Quarter 3 the Create task submits your code twice. The full program goes in with comments, and comments are required there, to say where any code you did not write came from. The Project Reference is these four segments with no comments at all.

Leaving comments in the Project Reference scores zero on the entire Create task, including the written answers you give in May. It is 30% of your exam grade, lost to a copy-and-paste habit.

There is a second way to score zero, and it is a deadline. If the Project Reference is not submitted as final on time, you answer the written questions without it: four questions about your own program, from memory.

Both are worth rehearsing on something that costs 15 points instead of 30% of an exam. That is what this is.

dividerdivider

Rubric

WhatPoints
Plan approved at the session 45 gate, with a session-by-session plan and a named first cut10
Input: the program asks for something and uses the answer5
An array the program actually needs10
A method you wrote, with a parameter that changes what it does15
Sequencing, selection and iteration inside that method's body15
Calls to that method5
Output based on the input and the functionality5
Sustained work across the block, including the session 47 audit10
Practice Project Reference: four segments, comments removed, on time15
Gallery walk: ran your program and answered both questions10
Total100

Same omission as Build 1: nothing on this list scores how ambitious the idea was, or whether everything you planned got finished. A project that got cut back to its named first cut, and works, loses nothing here.

divider

Submit

Submit four things to the dropbox:

  1. Your session 45 plan, as approved on the day.
  2. Your program, with comments.
  3. Your practice Project Reference: four segments, no comments.
  4. One line naming your method and its parameter, so your teacher knows which one to check requirement 4 against.

Items 2 and 3 contain the same code and must differ in exactly one way. If you can hand those in correctly here, the Quarter 3 version is a formality.

Build Complete