DataMuseum.dk

Presents historical artifacts from the history of:

CP/M

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about CP/M

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦4ce43028e⟧ TextFile

    Length: 768 (0x300)
    Types: TextFile
    Names: »RENTE.PAS«

Derivation

└─⟦08ea08c61⟧ Bits:30003924 PolyPascal programmer
    └─ ⟦this⟧ »RENTE.PAS« 
└─⟦09235ab48⟧ Bits:30003065 Demoprogrammer K-Z til Pascal bog
    └─ ⟦this⟧ »RENTE.PAS« 
└─⟦092727b26⟧ Bits:30005927 Demoprogrammer til Pascal bog (Jet-80)
    └─ ⟦this⟧ »RENTE.PAS« 

TextFile

PROGRAM rente;
  
  VAR
    rente, rentefod, kapital : REAL;
    dagantal : INTEGER;
  
  BEGIN
    WRITE(CLRHOM);
    WRITELN('Programmet beregner renten, når man indtaster KAPITAL,');
    WRITELN('RENTEFOD og antal DAGE');
    WRITELN;
    WRITE('Indtast KAPITAL:    '); READLN(kapital);
    WRITE('Indtast RENTEFOD:   '); READLN(rentefod);
    WRITE('Indtast ANTAL DAGE: '); READLN(dagantal);
    rente := kapital * rentefod * dagantal / 100 / 360;
    WRITELN;
    WRITELN('KAPITAL:    ', kapital : 10 : 2, ' kr');
    WRITELN('RENTEFOD    ', rentefod : 10 : 2, ' %');
    WRITELN('ANTAL DAGE: ', dagantal : 10, ' dage');
    WRITELN('RENTE:      ', rente : 10 : 2, ' kr');
    WRITELN;
  END.
«eof»