Skip to content

Add answer key for C# Basics workshop#641

Open
beagandica wants to merge 1 commit intoNuevoFoundation:masterfrom
beagandica:content/answer-key-csharp-basics
Open

Add answer key for C# Basics workshop#641
beagandica wants to merge 1 commit intoNuevoFoundation:masterfrom
beagandica:content/answer-key-csharp-basics

Conversation

@beagandica
Copy link
Copy Markdown
Member

Summary

Add a comprehensive answer key for the C# Basics workshop covering all interactive challenges.

Changes

New file: \content/english/csharp-basics/answer-key.md\

Solutions for all 5 challenge groups:

  1. Variables - Help Patrick - Fix data type mismatches (string, int, double, char, bool) with explanation table
  2. Operators - Exam Statistics - Declare grade variables, calculate class average, use relational operators
  3. Control Structures - If-Statement - Boolean expressions for Patrick's greeting (morning/afternoon/night)
  4. Control Structures - For-Loop - Convert while loop to for loop (sum 1-100)
  5. Methods - Pyramid Count - pyramidCount method using sum of squares
  6. Classes and Objects - Bird Class - Complete class with fields, constructor, getters, and ToString

Each solution includes:

  • The code solution
  • Expected output
  • Kid-friendly explanation of how it works

Solutions verified against the actual .NET Fiddle starter code (Widgets xKMKvn, mM7xbj, T6AUdh, ireaAA, OH5XQO).

Languages affected

  • English (primary)
  • Brazilian Portuguese has the same challenges (same .NET Fiddle widgets with identical C# code) — no separate answer key needed since solutions are code-based

Testing

Create answer-key.md with solutions for all 5 challenge groups:
- Variables: Fix Patrick's data type mismatches (5 variables)
- Operators: Exam Statistics with average calculation and relational operators
- Control Structures: If-statement greeting logic + for-loop sum 1-100
- Methods: pyramidCount method for square-number pyramid
- Classes and Objects: Complete Bird class with fields, constructor, getters, ToString

Each solution includes code, expected output, and kid-friendly explanations.
Solutions verified against .NET Fiddle starter code (Widgets xKMKvn, mM7xbj,
T6AUdh, ySFwK0, ireaAA, OH5XQO). Hidden from navigation (hidden: true).

10-model QA passed (3 clean passes). Hugo build verified.
PT-BR has same challenges (same .NET Fiddle widgets) - code-based answer key
is language-agnostic.

Co-authored-by: Copilot <[email protected]>
@beagandica beagandica force-pushed the content/answer-key-csharp-basics branch from 7ced995 to 239b026 Compare April 29, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant