Read the Create task's six requirements and it is easy to picture an app: accounts, a database, a dashboard, something with a logo. The requirements do not ask for that.
Below is a complete C# program that meets all six. It is 39 lines, including the blank ones, it took one sitting to write, and somebody could use it in about ninety seconds.
This is not a template and you cannot hand it in. Work that comes from a teacher's sample, a curriculum provider's sample, or a practice task may not be submitted as your own. It is here so you have something to measure against: a floor, not a ceiling, and definitely not a starting file.
Console.Write("How many classes? ");int howMany = int.Parse(Console.ReadLine());
string[] classNames = new string[howMany];int[] averages = new int[howMany];
for (int i = 0; i < howMany; i++){ Console.Write("Class name: "); classNames[i] = Console.ReadLine(); Console.Write("Current average: "); averages[i] = int.Parse(Console.ReadLine());}
Console.WriteLine();Console.WriteLine("Below 70:");int failing = ClassesBelow(70);Console.WriteLine($" {failing} class(es)");
Console.WriteLine();Console.WriteLine("Below 80:");int shaky = ClassesBelow(80);Console.WriteLine($" {shaky} class(es)");
int ClassesBelow(int cutoff){ int count = 0;
for (int i = 0; i < classNames.Length; i++) { if (averages[i] < cutoff) { Console.WriteLine($" {classNames[i]} - {averages[i]}"); count = count + 1; } }
return count;}That is all of it. Nothing was left out to make it fit on the page.
How many classes? 4Class name: Algebra 2Current average: 84Class name: ChemistryCurrent average: 68Class name: US HistoryCurrent average: 77Class name: Spanish 3Current average: 91
Below 70: Chemistry - 68 1 class(es)
Below 80: Chemistry - 68 US History - 77 2 class(es)Look at the two answers. The same method was called twice with a different number and gave back a different list. That is not a nice touch. It is the parameter requirement, made visible.
The Create task is written for every language, so it says list where C# has an array and procedure where C# has a method.
| Requirement | Lines | What satisfies it |
|---|---|---|
| 1 Input | 2, 10, 12 | Three questions, and every answer ends up in the arrays that everything else reads |
| 2 List | 4–5, 10, 12 | classNames and averages. Delete them and there is nothing left to search |
| 3 Procedure | 25 | ClassesBelow(int cutoff), written by the student, with a parameter that changes the result |
| 4 Algorithm | 26–39 | Sequencing, iteration at line 29, and selection at line 31: all three inside the method's body |
| 5 Calls | 17, 22 | Called twice, with different arguments |
| 6 Output | 18, 23, 33 | Depends on what was typed in and on which cutoff was passed |
Requirement 4 is the one that fails silently, and it is worth saying exactly what it asks: the loop and the decision have to be inside the method you wrote. Not somewhere in the program. Inside those braces.
This is the planning sheet from the Build 1 gate, filled in for the program above. Notice how little there is to say.
Program: Grade CheckWhat it does: you type in each class and your currentaverage. It tells you which ones are below a cutoff.
Who would use it: me, the night before progressreports, to work out which class to worry about first.
Input: how many classes, then a name and an average for each oneArray: classNames and averages, one entry per class. Without them there is nothing to searchMethod: ClassesBelow, parameter cutoff. Pass 70 and you get one class back; pass 80 and you get twoInside it: the loop ....... over every class the decision ... is this average below cutoff?Output: the classes under the cutoff, and how manyProgram: StudySphereWhat it does: a study planner with accounts, a calendar,automatic grade import, reminders, a dashboard and aphone app.
Who would use it: every student in the school.
Input: log in, courses, assignments, due dates ...Array: users, courses, assignments, reminders ...Method: about forty of themInside it: ...Output: ...
Sessions you have ......... 4 for Build 2, 8 for the Create taskSessions this needs ....... a great many more than 8
Score if it is finished ......... the same as Grade CheckScore if it is not finished ..... whatever the half-built version can proveFinished, this scores exactly what Grade Check scores. There is no bonus for ambition. The rubric asks whether an array is there, whether a method is there, and whether the loop and the decision are inside it, and a 39-line program answers yes just as loudly as a 3,000-line one.
Unfinished, it scores whatever the half-built version can prove, which is usually much less. That is the entire risk, and it is avoidable.
The honest version of the advice: pick something you could describe to somebody in one sentence, build it until it works, and then, only then, add a second feature if the time is there.
Here is the same program with the method rewritten. It runs. Given the same answers, it prints character-for-character the same output as the version above.
Console.Write("How many classes? ");int howMany = int.Parse(Console.ReadLine());
string[] classNames = new string[howMany];int[] averages = new int[howMany];
for (int i = 0; i < howMany; i++){ Console.Write("Class name: "); classNames[i] = Console.ReadLine(); Console.Write("Current average: "); averages[i] = int.Parse(Console.ReadLine());}
Console.WriteLine();Console.WriteLine("Below 70:");int failing = 0;
for (int i = 0; i < classNames.Length; i++){ if (IsBelow(averages[i], 70)) { Console.WriteLine($" {classNames[i]} - {averages[i]}"); failing = failing + 1; }}
Console.WriteLine($" {failing} class(es)");
Console.WriteLine();Console.WriteLine("Below 80:");int shaky = 0;
for (int i = 0; i < classNames.Length; i++){ if (IsBelow(averages[i], 80)) { Console.WriteLine($" {classNames[i]} - {averages[i]}"); shaky = shaky + 1; }}
Console.WriteLine($" {shaky} class(es)");
bool IsBelow(int score, int cutoff){ if (score < cutoff) { return true; }
return false;}The loop moved out of the method. IsBelow is a real method, and it does have a parameter that changes what it does, but its body has only a decision. No loop. So requirement 4 is not met, and the program you see on screen is identical. The loops that remain are in the main program, which the College Board does not count as yours.
This is why the requirement fails silently. You cannot catch it by running the program. You catch it by opening the method and looking for all three things between its braces.
Your program has to be yours. Not because copying is hard to catch, but because on exam day you write about your own code, from memory, with only your Project Reference in front of you. A program you did not write is a program you cannot describe.