How otniel113/tugasbesardap works
Project type and purpose
• This is a single-executable, command-line, educational Pascal program (“dinas_kesehatan.pas”) for managing and analyzing a fixed-size array of health-agency records.
• It is *not* a multi-tier web app or service, but a monolithic procedural application: the user enters data via the console; the program stores it in an in-memory array; then it performs various computations, searches, sorts, and prints results.
File structure
• Top-level directory “Dinas Kesehatan” contains:
• dinas_kesehatan.pas (the sole source code)
• dinas_kesehatan.o / dinas_kesehatan.exe (compiled artifacts)
• README.md describes the data model, user workflow, and features; no separate modules, libraries, or external services are present.
• No network, no database—just Pascal’s runtime and standard I/O.
README for additional insights
• The core data type is a record Kesehatan with fields: Name, Asuhan (case count), Tenaga_Kesehatan (staff count), Rasio (ratio).
• The main workflow steps:
1) Read N (1–10) agencies
2) Read each agency’s details
3) Print initial table
4) Search by name & display record if found
5) Find agency with max Asuhan
6) Compute average Tenaga_Kesehatan
7) Compute and sort by Rasio ascending
8) Print sorted by Rasio
9) Sort by Tenaga_Kesehatan ascending
10) Print sorted by Tenaga_Kesehatan
Detail without over-engineering
• Because there is only one source file, break it into logical subcomponents rather than physical ones.
• Major routines and data transformations—this ensures completeness even in a small procedural codebase.