Hong-Phuc Bui
2025-01-16 2889de7f0c2d587a17fbd322af57c29e84238620
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * point-to-text.js
 *
 */
 
import {terminal} from "./dfhi.js";
 
window.main = function(...argv) {
    let points = Number.parseFloat(argv[0]);
    if (points < 0) {
        terminal.printl("Kein gültiger Punkt");
    } else if (points < 40) {
        terminal.printl("Nicht ausreichend");
    } else if (points < 50) {
        terminal.printl("Ausreichend");
    } else if (points < 70) {
        terminal.printl("Befriedigend");
    } else if (points < 90) {
        terminal.printl("Gut")
    } else if (points <= 100) {
        terminal.printl("Sehr gut");
    } else {
        terminal.printl("Kein gültiger Punkt");
    }
};