klasscho

Untitled

Nov 20th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. var
  2. Matrixx: MatrixType;
  3. Size, i: Integer;
  4. FileName: string;
  5. Avrg: Real;
  6. MyTFile: TextFile;
  7. CorrectMatr: Boolean;
  8. Mass: TArr;
  9.  
  10. begin
  11. repeat
  12. ReadFileName(FileName);
  13. CorrectMatr := IsTheMatrixCorrect(FileName);
  14. if CorrectMatr := True then
  15. begin
  16. ReadMatrix(Matrixx,FileName, Size);
  17. Size := SizeOfMatrix(MyTFile);
  18. MatrixOutput(Matrixx, Size);
  19. SetLength(Mass, Size);
  20. Avrg := Average(Matrixx, Size);
  21. AverageOutput(Mass, FileName, Size);
  22. WriteToFile(Mass, FileName, Size);
  23. end
  24. else
  25. CorrectMatr := False;
  26. writeln('The name of the matrix inputs incorrect. Try again. Example: Name.txt');
  27. until CorrectMatr;
  28.  
  29. end.
Advertisement
Add Comment
Please, Sign In to add comment