Skip to content

Latest commit

 

History

History
68 lines (51 loc) · 1.44 KB

File metadata and controls

68 lines (51 loc) · 1.44 KB

Assessment 01: Foundations

Goal

Build confidence with input handling, loops, functions, lists, and strings.

Task

Write a program that:

  1. Reads an integer N (N > 0).
  2. Reads N full names and exam scores (0..100).
  3. Prints:
  • all records
  • average score
  • highest score with student name
  • lowest score with student name
  • pass count (score >= 60)

Learning Metadata

  • Difficulty: Beginner.
  • Estimated Time: 30-45 minutes.
  • Prerequisites: All 01-foundations modules, especially types-and-io, control-flow, and strings.
  • Learning Focus: Prove you can read structured input, preserve names, and compute accurate summaries without step-by-step scaffolding.

Quick Run

python main.py

Sample Input

3
Ana Smith
91
Bob Lee
55
Carla Mendez
88

Sample Output (shape)

Students:
- Ana Smith: 91
- Bob Lee: 55
- Carla Mendez: 88
Average: 78.00
Highest: Ana Smith (91)
Lowest: Bob Lee (55)
Passed: 2/3

Cross-Language Notes

  • Compared with the C++ assessment, this version reaches the same summary goal with much less syntax and more runtime flexibility.
  • Relative to C#, Go, and TypeScript, fewer mistakes are caught before execution.
  • The comparison to watch is how much structure the learner must impose manually.

What To Check

  • full names are preserved exactly as entered
  • highest and lowest records match the actual dataset
  • pass counts and averages use the required scoring rules