Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getScore(data: people): people;
- var
- i: integer;
- begin
- for i := 1 to length(data) do begin
- data[i].chevyScore := CHEVY*data[i].chevorlet;
- data[i].buickScore := BUICK*data[i].buick;
- data[i].vanScore := MINI*data[i].minivan;
- data[i].truckScore := TRUCK*data[i].truck;
- data[i].score := data[i].chevyScore+data[i].buickScore+data[i].vanScore+data[i].truckScore;
- end;
- Result := data;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement