Question: Write an HLA Assembly language program that determines the distance between two points, A and B . For a point A with coordinates ( x

Write an HLA Assembly language program that determines the distance between two points, A and B. For a point A with coordinates (x1, y1) and a point B with coordinates (x2, y2), the formula you need to calculate is shown below:
Your main program should prompt for the values x1, x2, y1 and y2, each which are to be real32 values, and then call a function with the following signature:
procedure distance( x1: real32; x2 : real32; y1 : real32; y2 : real32); @nodisplay; @noframe;
A sample program dialogue is shown below.
Gimme a value for x1:8.1
Gimme a value for x2:4.1
Gimme a value for y1:2.2
Gimme a value for y2:-1.1
The distance between points A and B is 5.18555
Gimme a value for x1:8
Gimme a value for x2:4
Gimme a value for y1:2
Gimme a value for y2:-1
The distance between points A and B is 5.00000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!