This shows you the differences between two versions of the page.
poo-is-ab:tema:2025:01 [2025/09/27 19:25] marius.trifu [Tema 1 – Catalog studenți (C++)] |
poo-is-ab:tema:2025:01 [2025/09/27 19:54] (current) marius.trifu |
||
---|---|---|---|
Line 25: | Line 25: | ||
**Cerințe suplimentare:** | **Cerințe suplimentare:** | ||
- | * Media se afișează cu **exact două zecimale**, folosind **rotunjire corectă**. | + | * Media se afișează cu **exact două zecimale**, prin **rotunjire unde e cazul**. |
Exemple: | Exemple: | ||
- 9.666 → 9.67 | - 9.666 → 9.67 | ||
- 9.664 → 9.66 | - 9.664 → 9.66 | ||
- | * Output-ul (`catalog.out`) trebuie să respecte **formatul exact conform testelor oficiale**. | + | * Output-ul (`catalog.out`) trebuie să respecte **formatul exact conform testelor**. |
===== 2. Formate fișiere ===== | ===== 2. Formate fișiere ===== | ||
Line 79: | Line 79: | ||
**Exemplu:** | **Exemplu:** | ||
- | <code> | + | ^ catalog.out ^ |
+ | | <code> | ||
+----------------------+--------+-------+ | +----------------------+--------+-------+ | ||
| Nume | Varsta | Medie | | | Nume | Varsta | Medie | | ||
Line 87: | Line 88: | ||
| Ion | 20 | 9.17 | | | Ion | 20 | 9.17 | | ||
+----------------------+--------+-------+ | +----------------------+--------+-------+ | ||
- | </code> | + | </code> | |
<note tip> | <note tip> |