示例#1
0
def cetak():
    print(
        "\n==========================================================================="
    )
    print(
        "|========================= DAFTAR DATA MAHASISWA =========================|"
    )
    print(
        "|=========================================================================|"
    )
    print(
        "| NO |      NAMA       |       NIM        | TUGAS |  UTS  |  UAS  | AKHIR |"
    )
    print(
        "|====|=================|==================|=======|=======|=======|========"
    )
    no = 1
    for tabel in kontak.values():
        print("║{0:3} ║ {1:15} ║ {2:16} ║ {3:5} ║ {4:5} ║ {5:5} ║ {6:5} ║".
              format(no, tabel[0], tabel[1], tabel[2], tabel[3], tabel[4],
                     tabel[5]))
        no += 1
    print(
        "==========================================================================="
    )
    print(
        "\n    (T)Tambah       (U)Ubah      (H)Hapus     (C)Cari      (L)Lihat     (K)Keluar   "
    )
示例#2
0
def cetak():
    print(
        "\n|=========================================================================|"
    )
    print(
        "|========================= DAFTAR DATA MAHASISWA =========================|"
    )
    print(
        "|=========================================================================|"
    )
    print(
        "| NO |      NAMA       |       NIM        | TUGAS |  UTS  |  UAS  | AKHIR |"
    )
    print(
        "|=========================================================================|"
    )
    no = 1
    for tabel in kontak.values():
        print("|{0:3} | {1:15} | {2:16} | {3:5} | {4:5} | {5:5} | {6:5} |".
              format(no, tabel[0], tabel[1], tabel[2], tabel[3], tabel[4],
                     tabel[5]))
        no += 1
    print(
        "|=========================================================================|"
    )
    print(
        "\n    (A)dd       (E)dit      (D)elete     (S)earch      (L)ist     (Q)uit   "
    )
示例#3
0
def cetak():
    print(
        "\n-----------------------------------------------------------------------------------------------"
    )
    print(
        "--------------------------------------DAFTAR DATA MAHASISWA------------------------------------"
    )
    print(
        "-----------------------------------------------------------------------------------------------"
    )
    print(
        "| NO |      NAMA       |       NIM        | NILAI TUGAS | NILAI UTS | NILAI UAS | NILAI AKHIR |"
    )
    print(
        "|----|-----------------|------------------|-------------|-----------|-----------|-------------|"
    )
    no = 1
    for tabel in kontak.values():
        print(
            "|{0:3} | {1:15} | {2:16} | {3:11} | {4:9} | {5:9} | {6:11.2f} |".
            format(no, tabel[0], tabel[1], tabel[2], tabel[3], tabel[4],
                   tabel[5]))
        no += 1
    print(
        "-----------------------------------------------------------------------------------------------"
    )
    print(
        "\n    (T)Tambah       (U)Ubah      (H)Hapus     (C)Cari      (L)Lihat   "
    )
示例#4
0
def cetak():
    print(
        "\n╔═════════════════════════════════════════════════════════════════════════╗"
    )
    print(
        "╠═════════════════════════ DAFTAR DATA MAHASISWA ═════════════════════════╣"
    )
    print(
        "╠════╦═════════════════╦══════════════════╦═══════╦═══════╦═══════╦═══════╣"
    )
    print(
        "║ NO ║      NAMA       ║       NIM        ║ TUGAS ║  UTS  ║  UAS  ║ AKHIR ║"
    )
    print(
        "╠════╬═════════════════╬══════════════════╬═══════╬═══════╬═══════╬═══════╣"
    )
    no = 1
    for tabel in kontak.values():
        print("║{0:3} ║ {1:15} ║ {2:16} ║ {3:5} ║ {4:5} ║ {5:5} ║ {6:5} ║".
              format(no, tabel[0], tabel[1], tabel[2], tabel[3], tabel[4],
                     tabel[5]))
        no += 1
    print(
        "╚════╩═════════════════╩══════════════════╩═══════╩═══════╩═══════╩═══════╝"
    )
    print(
        "\n    (A)dd       (E)dit      (D)elete     (S)earch      (L)ist     (Q)uit   "
    )
示例#5
0
def cetak():
    print(
        "\n==========================================================================="
    )
    print(
        "========================== DAFTAR DATA MAHASISWA =========================="
    )
    print(
        "==========================================================================="
    )
    print(
        "| NO |      NAMA       |       NIM        | TUGAS |  UTS  |  UAS  | AKHIR |"
    )
    print(
        "==========================================================================="
    )
    no = 1
    for tabel in kontak.values():
        print("|{0:3} | {1:15} | {2:16} | {3:5} | {4:5} | {5:5} | {6:5} |".
              format(no, tabel[0], tabel[1], tabel[2], tabel[3], tabel[4],
                     tabel[5]))
        no += 1
    print(
        "==========================================================================="
    )
    print(
        "\n  (T)ambah       (U)bah      (H)apus     (C)ari      (L)ihat     (K)eluar"
    )