English:Computing - Unit 1 - Computing Year 10
Introduction
Design an open afternoon for a fictional school’s two computing workshops, Pixel Lab and Sound Desk. Write a Python program that allocates limited places, then turn its aggregate results into a screen and a printed sign that visitors can understand. Keep real names, addresses and accounts out of the exercise. You can complete it offline with a Python interpreter, a text editor and a browser, or trace the supplied example on paper.
Turn a brief into three products

The event has two workshops, two places in each workshop and a single ordered list of eight invented requests. An organiser needs a program that allocates places consistently. Visitors need a public notice that says how many places were assigned and whether anyone is waiting. A colleague needs a handover table so they can compare an update with the previous version. Build all three: a program, a clear media product and an information record.
Agree a rule before looking at any results. A recognised request is processed in arrival order. The first recognised request for a ticket counts. The ticket is an invented label for this lesson, such as A01. If the workshop is full, record a waiting entry without assigning a place. Treat repeat tickets and unknown workshop names as problems to check, so they never become bookings by accident. Do not put individual tickets or invalid entries on the public notice.
Break down the work. Store capacity as two numbers, store requests in order, write a function to make the decision, then report grouped counts. Design the display separately. The organiser’s job now is clear: verify the rules and counts before publishing the notice. The visitor’s job is to locate the workshop and understand its status quickly. Write an acceptance check for each person before you start.
Trace the algorithm before you run it

An algorithm is a sequence of instructions that can solve a problem. The video introduces the idea, which you can practise with the written trace here. A list preserves the order of the requests. Use a dictionary to look up a workshop’s capacity and a set to remember recognised tickets. Each request has two fields: a ticket and a workshop. The list and dictionary have different roles. The order of the list determines the first valid request; the dictionary stores limits by name.
| Order | Fictional ticket | Workshop | Expected decision |
|---|---|---|---|
| 1 | A01 | Pixel Lab | Assigned |
| 2 | B02 | Sound Desk | Assigned |
| 3 | C03 | Pixel Lab | Assigned |
| 4 | D04 | Pixel Lab | Waiting |
| 5 | E05 | Sound Desk | Assigned |
| 6 | A01 | Sound Desk | Repeated ticket |
| 7 | F06 | Robot Studio | Unknown workshop |
| 8 | G07 | Sound Desk | Waiting |
Trace the counts after each row. D04 sees two confirmed Pixel Lab places and goes into its waiting list. A01 already has a recognised request, so its second request cannot occupy a place at Sound Desk. F06 does not name an offered workshop. At the end each published row should say two assigned and one waiting. Four assignments plus two waiting entries plus two rejected entries account for all eight requests.
Write and test the allocation program
Put the code in a local Python file. The function relies on a structured list of two-field records and a capacity dictionary with non-negative integers. The classroom worksheet uses those inputs. A production tool would check the format before calling this function and handle concurrent updates; a classroom example processes a fixed list in one run.
def allocate(requests, capacity):
assigned = {workshop: [] for workshop in capacity}
waiting = {workshop: [] for workshop in capacity}
rejected = []
seen = set()
for ticket, workshop in requests:
if workshop not in capacity:
rejected.append((ticket, "Unknown workshop"))
elif ticket in seen:
rejected.append((ticket, "Repeated ticket"))
else:
seen.add(ticket)
if capacity[workshop] > len(assigned[workshop]):
assigned[workshop].append(ticket)
else:
waiting[workshop].append(ticket)
return assigned, waiting, rejected
capacity = {"Pixel Lab": 2, "Sound Desk": 2}
requests = [
("A01", "Pixel Lab"),
("B02", "Sound Desk"),
("C03", "Pixel Lab"),
("D04", "Pixel Lab"),
("E05", "Sound Desk"),
("A01", "Sound Desk"),
("F06", "Robot Studio"),
("G07", "Sound Desk"),
]
assigned, waiting, rejected = allocate(requests, capacity)
for workshop in capacity:
print(workshop, "assigned", len(assigned[workshop]),
"waiting", len(waiting[workshop]))
print("Rows to check:", len(rejected))Predict the output before running it. Pixel Lab shows two assigned and one waiting. Sound Desk also shows two assigned and one waiting. The final count of rows to check is two. The script prints totals; the returned lists allow the organiser to inspect classroom tickets locally. Fix the coded instructions only after identifying a disagreement with your predicted trace. Compare outputs, not just whether the program ran.
Repeat with three test cases. With no requests, all counts are zero. With one place and two different tickets for the same workshop, the second gets a place on the waiting list. With zero places and one valid request, none is assigned and one waits. For a fourth test reverse two adjacent valid requests in an overbooked workshop. The assigned total can stay the same even though the ticket assigned changes. Explain why totals alone cannot verify the order rule.
Design a notice that visitors can read and use
Use the aggregate counts to make a page visitors can understand at a glance. Use real text for workshop names, counts and status. A coloured badge can help some readers, but include a word like full or spaces available so colour carries no essential fact by itself. Give the display a title and a time label. The page design is a separate deliverable, with a static sample copied from the program’s confirmed counts. The sample has no automatic data feed or remote service.
The W3C Web Accessibility Initiative video explains why accessible design matters. Use the W3C images tutorial when you add an informative visual to your own design. Its text alternative should communicate the information the visual supplies. If you make a chart of counts, keep the exact counts in nearby text or a table too. Compare a print version and a screen version. Use a large, clear heading and keep the workshop name and its count together.
// Run in your teacher's blank local browser exercise.
const results = [
["Pixel Lab", 2, 1, "Full"],
["Sound Desk", 2, 1, "Full"]
];
function appendText(parent, tag, value) {
const element = document.createElement(tag);
element.textContent = value;
parent.append(element);
return element;
}
document.documentElement.lang = "en";
document.title = "Workshop places";
const viewport = document.createElement("meta");
viewport.name = "viewport";
viewport.content = "width=device-width, initial-scale=1";
document.head.append(viewport);
const main = appendText(document.body, "main", "");
main.style.maxWidth = "42rem";
main.style.marginInline = "auto";
appendText(main, "h1", "Open afternoon workshops");
appendText(main, "p", "Practice example, checked at 13:00.");
const region = appendText(main, "div", "");
region.setAttribute("role", "region");
region.setAttribute("aria-label", "Workshop results");
region.tabIndex = 0;
region.style.maxWidth = "100%";
region.style.overflowX = "auto";
region.style.outlineOffset = "2px";
const table = appendText(region, "table", "");
appendText(table, "caption", "Workshop places");
const header = table.createTHead().insertRow();
for (const label of ["Workshop", "Assigned", "Waiting", "Status"]) {
appendText(header, "th", label).scope = "col";
}
const body = table.createTBody();
for (const [workshop, assigned, waiting, status] of results) {
const row = body.insertRow();
appendText(row, "th", workshop).scope = "row";
for (const value of [assigned, waiting, status]) {
appendText(row, "td", value);
}
}Use the JavaScript panel of a teacher-approved offline browser exercise with a blank page, or copy the same results into a spreadsheet or document with headings. The JavaScript example builds the table from its short list of checked values. In the browser, the table can scroll inside its own labelled region when it is wider than the screen. Use Tab to focus the region and the arrow keys to scroll. At a narrow width and with text enlarged, can you still associate each status with the correct workshop? Compare it with a paper version. Try a different creative presentation, such as high-contrast blocks with a short headline for each workshop. Ask a partner to find the Pixel Lab waiting count without colour. If they misread it, revise the layout or wording. A useful design gives a clear answer without depending on familiarity with your code.
Publish a consistent version and improve it
Create a handover in a local spreadsheet or document. Record the time, the capacities used, confirmed totals, the waiting totals and the name of each test. Keep practice ticket-level data separate. For a small classroom handover, set columns A to D as workshop, capacity, assigned and waiting. Rows 2 and 3 contain the two workshops. In a summary row, a spreadsheet formula such as SUM(C2:C3) checks the total assigned count. Compare with four in the Python result. Explain why the totals row has a different meaning from an individual workshop row.
Now make a controlled change. Increase Pixel Lab capacity to three while keeping exactly the same request order. D04 gains the additional place. Pixel Lab becomes three assigned and zero waiting. Sound Desk stays at two assigned and one waiting. The rejected count stays at two. The updated total assigned is five. Revise the handover and both notices. Use a new time label. One presentation still showing two assigned would be a version error even if the new code works.
Build your own two-workshop version with original titles and six to ten invented requests. Decide how to handle ties and unknown values. Use at least three tests, including a capacity boundary and a malformed worksheet row that you correct before using the model program. Give the visitor two easy ways to read the same information, such as a printed sign and a responsive page. Check the sign against the handover after a partner asks for one change. This project uses programming to build a useful result, information technology to maintain it and creative media decisions to communicate it.
Interactive Tasks
Quiz: Test Your Knowledge
Why should the organiser agree the booking rule before seeing the result? (It provides a consistent rule that can be tested for all requests) (!It ensures every workshop has unlimited space) (!It makes every request valid) (!It lets the notice override the code’s results)
Which Python structure preserves the arrival order of the supplied requests? (The list of request pairs) (!The dictionary of capacities by itself) (!The set of previously seen tickets) (!The caption in the HTML table)
Why does D04 go to the Pixel Lab waiting list in the first run? (Both places there are already assigned) (!It is the second request made by A01) (!Pixel Lab is not in the dictionary) (!The HTML page shows the wrong status)
Why is the second request with A01 rejected? (Its first recognised request already counted) (!Every request for Sound Desk is rejected) (!The ticket needs numeric addition before checking) (!A01 was first used in an unknown workshop)
What does F06 test? (Handling a workshop that is not offered) (!Processing the first request for an offered workshop) (!Making a page usable only by colour) (!Changing Sound Desk’s capacity by one)
What happens with one valid request and zero places? (There are zero assignments and one waiting entry) (!The program gives one confirmed place) (!The workshop is silently added under a new name) (!There is an assignment and a repeated ticket)
Which notice displays the information accessibly? (Readable workshop names, labelled counts and a text status) (!An unlabelled image which shows status only through green and red) (!A paragraph of unlabelled numbers) (!A picture of the Python editor with no summary)
What would a successful change to Pixel Lab capacity of three produce? (Three assigned and zero waiting at Pixel Lab) (!Three assigned and zero waiting at both workshops) (!One assigned and two waiting at Pixel Lab) (!Two assigned and one waiting at Pixel Lab)
Why compare a spreadsheet summary with the Python totals? (To check that the handover and the computed counts match) (!To guarantee that every possible input was tested) (!To prove both products have the same design) (!To find the private identities of all visitors)
What should be published for visitors? (Totals and status per workshop with a version or time label) (!All practice tickets including rejected entries) (!Only the first draft even after the bookable places change) (!The organisers’ private handover with individual data)
Memory Game
| Algorithm | A defined sequence of steps that solves a problem |
| Capacity | The maximum possible assignments for a workshop |
| Record | Related fields describing one item or request |
| Aggregate | A result such as a count that combines multiple records |
| Version | A named or timed state of a product or record |
Drag and Drop
| Ordered list | Keeps the supplied arrival sequence |
| Dictionary | Looks up capacity using the workshop name |
| Set of seen tickets | Recognises a ticket already processed |
| Accessible table heading | Connects a count to what the number means |
| Version label | Helps compare the current sign with the current handover |
Crossword Puzzle
| CAPACITY | Number of places a workshop can accept |
| TICKET | Invented label used for a request |
| WAITING | Result when the workshop is full |
| CAPTION | Text which names the purpose of a table |
| VERSION | Identifies a dated or numbered state of the notice |
| TEST | A comparison of expected and actual behaviour |
LearningApps
Optional extra practice. Choose an appropriate activity with your teacher. If the external collection is unavailable, use the native activities and independent tasks in this course.
Cloze Text
Open Tasks
Easy
- Trace two rows: Show how the first two requests affect the assignment counts.
- Explain one boundary: Predict an assignment and a waiting result with one place and two valid tickets.
- Write a sign label: Choose a simple heading and one text status for an accessible workshop sign.
- Find a data check: List the assigned, waiting and rejected counts and verify that they sum to eight.
Standard
- Add a third workshop: Introduce a different workshop and one request for it. Show where each change belongs and predict the new counts.
- Test arrival order: Swap two valid Pixel Lab requests near the boundary. Compare which ticket was assigned and whether the output totals changed.
- Check digital and print products: Use one data table for two signs with deliberately different layouts. Ask a partner to locate one result in each.
- Audit the handover: Add up the assigned column and confirm it agrees with the corresponding Python result. Explain why a combined total alone cannot prove the detail is right.
Advanced
- Design three tests that disagree on purpose: Describe an empty case, an over-capacity case and a repeated ticket. For each say what output would reveal a faulty implementation.
- Compare two allocation rules: Design a new rule that allows two places per group, then show which part of the program would need to change and how you would verify it.
- Review inclusion and privacy: Identify one failure on an enlarged screen and one unnecessary detail the sign could disclose. Resolve both and retest.
- Deliver a versioned project: Produce a program, one locked-in test table and two notices for invented data. Apply one change and show how you know every final version agrees.
Learning Check
- Explain the order rule: Why is it possible to get the same assignment count after swapping two requests?
- Handle repeated and unknown rows: Explain the outcome of rows six and seven in the supplied example.
- Calculate a changed output: How do totals change when Pixel Lab gets three places and Sound Desk keeps two?
- Review an inaccessible notice: Who might struggle if the status is only shown by colour? Name two changes.
- Check how information moves: Describe the connection between the Python output and the browser notice created by JavaScript.
- Show evidence of readiness: Name one check for each of the program, the signs and the handover.
Worked checks and assessment guidance
- A fixed capacity controls the count. Arrival order governs which ticket is assigned when demand exceeds capacity. Compare the tickets in the organiser’s private test trace.
- Row six repeats ticket A01, which already had a recognised request. Row seven asks for Robot Studio, which is not offered. Both are rejected before any capacity is consumed.
- Pixel Lab becomes three assigned and zero waiting; Sound Desk is still two assigned and one waiting. The total assigned is five and two rows still need checking.
- People who cannot reliably distinguish the colours or who use a screen reader may miss it. Add clear text statuses and headings that connect each count and status to the relevant workshop.
- The organiser copies checked aggregate data from the Python program into the notice’s JavaScript list. The example has no live feed, so a second checked copy is needed when the figures change.
- Run a capacity boundary test for the program, check the signs can be read at a narrow width and without colour, and confirm the handover’s totals and version against the program output.
Learning evidence
- Trace the algorithm and compare predicted and actual results for three or more cases.
- Keep a versioned handover with totals that match the program.
- Produce a screen and print version of a public notice with named counts and statuses.
- Describe one improvement made after testing with a partner.
OER and Wikipedia
- Department for Education: KS4 Computing. This original classroom project integrates computing, digital media and information technology.
- Python documentation: lists, dictionaries and sets and What’s an algorithm?, original TED-Ed video by David J. Malan.
- W3C: informative images, W3C: accessible tables and Introduction to Web Accessibility and W3C Standards, original W3C Web Accessibility Initiative (WAI) video.
- Flowchart example.svg, Manuela knoop, CC BY-SA 3.0. Framework laptop AMD 13.jpg, Thcipriani, CC BY-SA 4.0. Both Commons files are shown unchanged.
- Wikipedia: User-centered design. Practise by observing how a partner reads the notice.
Linked learning areas
aiMOOC Projects
Schulfach+


aiMOOCs


aiMOOC Projekte


MOOCwiki · Deutsch
Nach dem Lernen ist vor dem Lernen
Entdecke direkt den nächsten Lernkurs. Weitere Inhalte erscheinen, wenn Du weiter nach unten scrollst.
Zur MOOCwiki-HauptseiteMediathek
Mediathek wird aus dem Wiki geladen ...
Keine passenden Inhalte gefunden. Bitte ändere Suche oder Filter.
NEWSLernweltNOAH fragen