TSP-Programm HA
hapcu.tsp
—
Plain Text,
1 kB (1278 bytes)
File contents
?------------------------------------------------------------- ? Programm fuer Hausaufgabenwettbewerb zu TSP ?------------------------------------------------------------- options crt ; freq n; ? Einlesen der Daten read(file='verdienst04.raw') dauer lohn ; mat fullsmpl=@smpl; print fullsmpl; ?dauer= Ausbildungsdauer in Jahren, wobei folgende Dauern unterstellt werden: ? Schulausbildung ggf plus Berufliche Ausbildung ? kein Abschluss = 7 Jahre Lehre = 1.5 Jahre ? Hauptschule = 9 Jahre Fachschule = 2 Jahre ? Realschule = 10 Jahre Ausbildung Beamte = 1.5 Jahre ? Fachabitur = 12 Jahre Fachhochschule = 3 Jahre ? Abitur = 13 Jahre Universitaet = 5 Jahre ? Sonstige = 10 Jahre ?lohn= Bruttomonatslohn ?Kontrolle smpl 1 10; print lohn dauer ; smpl fullsmpl; msd(byvar,terse) lohn dauer ; ?stop; ? Logarithmierter Bruttomonatslohn genr lnlohn = log(lohn); ?Aufgabe a title 'Aufgabe a'; ?Aufgabe b title 'Aufgabe b'; ?Aufgabe c title 'Aufgabe c'; ?Aufgabe d title 'Aufgabe d'; ?Aufgabe e title 'Aufgabe e'; END ;