home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turbo Toolbox
/
Turbo_Toolbox.iso
/
1990
/
05
/
einsteig
/
gwbsp1.bas
next >
Wrap
BASIC Source File
|
1990-02-15
|
5KB
|
147 lines
10 REM ***************gw-basic version**********************
20 REM KALKULATION DER SELBSTKOSTEN
30 REM PROGRAMMIERER: XYZ
40 REM DATUM: 1.1.1990
50 REM VARIABLEN: FM = FERTIGUNGSMATERIAL
60 REM MGPR = MATERIALGEMEINKOSTEN IN %
70 REM MGDM = MATERIALGEMEINKOSTEN IN DM
80 REM FL = FERTIGUNGSLÖHNE
90 REM FPR = FERTIGUNGSGEMEINKOSTEN IN %
100 REM FDM = FERTIGUNGSGEMEINKOSTEN IN DM
110 REM H = HERSTELLKOSTEN
120 REM VWPR = VERWALTUNGSGEMEINKOSTEN IN %
130 REM VWDM = VERWALTUNGSGEMEINKOSTEN IN DM
140 REM VPR = VERTRIEBSGEMEINKOSTEN IN %
150 REM VDM = VERTRIEBSGEMEINKOSTEN IN DM
160 REM S = SELBSTKOSTEN
170 REM **************MASKENAUFBAU**************************
180 CLS : KEY OFF
190 LOCATE 2, 5: PRINT STRING$(1, 201);
PRINT STRING$(70, 205); STRING$(1, 187)
200 LOCATE 3, 5: PRINT STRING$(1, 186):
LOCATE 3, 76: PRINT STRING$(1, 186)
210 LOCATE 4, 5: PRINT STRING$(1, 186):
LOCATE 4, 76: PRINT STRING$(1, 186)
220 LOCATE 5, 5: PRINT STRING$(1, 186):
LOCATE 5, 76: PRINT STRING$(1, 186)
230 LOCATE 6, 5: PRINT STRING$(1, 186):
LOCATE 6, 76: PRINT STRING$(1, 186)
240 LOCATE 7, 5: PRINT STRING$(1, 186):
LOCATE 7, 76: PRINT STRING$(1, 186)
250 LOCATE 8, 5: PRINT STRING$(1, 186):
LOCATE 8, 76: PRINT STRING$(1, 186)
260 LOCATE 9, 5: PRINT STRING$(1, 186):
LOCATE 9, 76: PRINT STRING$(1, 186)
270 LOCATE 10, 5: PRINT STRING$(1, 186):
LOCATE 10, 76: PRINT STRING$(1, 186)
280 LOCATE 11, 5: PRINT STRING$(1, 186):
LOCATE 11, 76: PRINT STRING$(1, 186)
290 LOCATE 12, 5: PRINT STRING$(1, 186):
LOCATE 12, 76: PRINT STRING$(1, 186)
300 LOCATE 13, 5: PRINT STRING$(1, 186):
LOCATE 13, 76: PRINT STRING$(1, 186)
310 LOCATE 14, 5: PRINT STRING$(1, 186):
LOCATE 14, 76: PRINT STRING$(1, 186)
320 LOCATE 15, 5: PRINT STRING$(1, 186):
LOCATE 15, 76: PRINT STRING$(1, 186)
330 LOCATE 16, 5: PRINT STRING$(1, 186):
LOCATE 16, 76: PRINT STRING$(1, 186)
340 LOCATE 17, 5: PRINT STRING$(1, 186):
LOCATE 17, 76: PRINT STRING$(1, 186)
350 LOCATE 18, 5: PRINT STRING$(1, 186):
LOCATE 18, 76: PRINT STRING$(1, 186)
360 LOCATE 19, 5: PRINT STRING$(1, 186):
LOCATE 19, 76: PRINT STRING$(1, 186)
370 LOCATE 20, 5: PRINT STRING$(1, 186):
LOCATE 20, 76: PRINT STRING$(1, 186)
380 LOCATE 21, 5: PRINT STRING$(1, 186):
LOCATE 21, 76: PRINT STRING$(1, 186)
390 LOCATE 22, 5: PRINT STRING$(1, 186):
LOCATE 22, 76: PRINT STRING$(1, 186)
400 LOCATE 23, 5: PRINT STRING$(1, 200);
PRINT STRING$(70, 205); STRING$(1, 188)
410 REM ********EINGABE************************************
420 COLOR 0, 7
430 LOCATE 1, 25: PRINT "KALKULATION DER SELBSTKOSTEN"
440 COLOR 7, 0
450 LOCATE 4, 20:
PRINT "Bitte geben Sie mit Dezimalpunkt ein :"
460 PRINT
470 LOCATE 8, 10:
INPUT "FERTIGUNGSMATERIAL IN DM (max. 99999 DM) : ", FM
480 PRINT
490 LOCATE , 10:
INPUT "FERTIGUNGSLÖHNE IN DM (max. 99999 DM)....: ", FL
500 PRINT
510 LOCATE , 10:
INPUT "MATERIALGEMEINKOSTEN IN % (max. 99 %)...: ", MGPR
520 PRINT
530 LOCATE , 10:
INPUT "FERTIGUNGSGEMEINKOSTEN IN % (max. 99 %)..: ", FPR
540 PRINT
550 LOCATE , 10:
INPUT "VERWALTUNGSGEMEINKOSTEN IN % (max. 99 %): ", VWPR
560 PRINT
570 LOCATE , 10:
INPUT "VERTRIEBSGEMEINKOSTEN IN % (max. 99 %)...: ", VPR
580 PRINT
590 PRINT
600 LOCATE , 20: PRINT "Weiter mit einer beliebigen Taste"
610 WARTEN$ = INPUT$(1)
620 CLS
630 REM **********VERARBEITUNG*****************************
640 LET MGDM = FM * MGPR / 100
650 FDM = FL * FPR / 100
660 H = FM + FL + MGDM + FDM
670 VWDM = H * VWPR / 100
680 VDM = H * VPR / 100
690 S = H + VWDM + VDM
700 REM *************AUSGABE********************************
710 PRINT
720 DATUM$ = MID$(DATE$, 4, 3) + MID$(DATE$, 1, 3) +
MID$(DATE$, 7, 4)
730 PRINT "KALKULATION DER SELBSTKOSTEN VOM "; DATUM$
740 PRINT
750 PRINT "FERTIGUNGSMATERIAL";
760 COLOR 15, 0: PRINT TAB(40); USING "######.## DM"; FM:
COLOR 7, 0
770 PRINT "+ ";
780 PRINT USING "###.##"; MGPR;
790 PRINT " % MATERIALGEMEINKOSTEN";
800 COLOR 15, 0: PRINT TAB(40); USING "######.## DM"; MGDM:
COLOR 7, 0
810 PRINT "FERTIGUNGSLÖHNE";
820 COLOR 15, 0: PRINT TAB(40); USING "######.## DM"; FL:
COLOR 7, 0
830 PRINT "+ ";
840 PRINT USING "###.##"; FPR;
850 PRINT " % FERTIGUNGSGEMEINKOSTEN";
860 COLOR 15, 0: PRINT TAB(40); USING "######.## DM"; FDM:
COLOR 7, 0
870 PRINT "------------------------------------------------"
880 PRINT "HERSTELLUNGSKOSTEN";
890 COLOR 15, 0: PRINT TAB(40); USING "######.## DM"; H:
COLOR 7, 0
900 PRINT "+ ";
910 PRINT USING "###.##"; VWPR;
920 PRINT " % VERWALTUNGSGEMEINKOSTEN";
930 COLOR 15, 0: PRINT TAB(40); USING "######.## DM"; VWDM:
COLOR 7, 0
940 PRINT "+ ";
950 PRINT USING "###.##"; VPR;
960 PRINT " % VERTRIEBSGEMEINKOSTEN";
970 COLOR 15, 0: PRINT TAB(40); USING "######.## DM"; VDM:
COLOR 7, 0
980 PRINT "------------------------------------------------"
990 COLOR 31, 0
1000 PRINT "SELBSTKOSTEN";
1010 PRINT TAB(39); USING "#######.## DM"; S
1020 COLOR 7, 0
1030 PRINT TAB(40); "============"
1040 LOCATE 20, 20:
PRINT "Weiter mit einer beliebigen Taste"
1050 WARTEN$ = INPUT$(1)
1060 CLS
1070 KEY ON
1080 END