Develop a program that solves the problem of finding pairs of perpendicular segments from N = 4 segments defined by the coordinates of the end points.
The program should be developed for 32-bit architectures of the Intel processor in the Windows OS environment (check - running * .EXE file in this OS) and successfully compiled by the FASM compiler.
For parsing the command line it is convenient to use the ssanf procedure (if the value of the first argument is not significant, it is useful to skip its assignment field using the form “% *”).
To ensure protection against incorrectly formed command line, the use of the default values of input parameters should be provided. To run the application with the command line, it is necessary to create at least two command (package, * .BAT) files with the correct and alternative data content on the command line.
When deciding whether to achieve accuracy during iterations, one should not compare the achieved solution with the “point” value (it is not known a priori), the accuracy is determined by the modulus of the difference of the objective function in this and the previous approximation (in fact, between the results of the ith and i-1 iterations)
. At the end of the work, it is still useful to compare the achieved solution with the “point” one for the given computing system and evaluate the error.
Data output should be carried out as a string in a standard Windows MessageBox window, use the printf family functions (usually wsprintf) to format the string.
If here has russian. write me, i will send you russian version for more understandable.