Question: C# Help, I am not sure where to start for this program and would like some help with getting it started. The file contains a

C# Help, I am not sure where to start for this program and would like some help with getting it started. The file contains a target box lower left coordinate, target box size, and information describing a line in parametric form. Using this information, you will plot the line using character output (Such as "*").

The files are formatted as follows: llx, lly, d, p1, p2, v1, v2

Where, (llx, lly) are the lower-left coordinates of the target box, d is the size of the coordinate box (in both coordinates), p1, p2 are a point on the line, and v1, v2 are the vector on the line.

The line that is given through this information is: C# Help, I am not sure where to start for this program

This is the example they give in the description: "-10 -5 20 1 1 2 -2". This means the target box's lower-left coordinates are (-10,-5) the size of the target box is 20 and the line is: and would like some help with getting it started. The file contains

Now is the point where I get confused.

Your task is to create the target box and the implicit form of the line. You can do this graphically or you can print the points using characters. An example of using characters might be (for a different line):

Things to consider: 1. The parametric form of the line is good for generating a line. 2. The implicit form is good for determining if a point is on the line. 3. How can you determine how close a point is to the line?

Note that character output can distort the aspect ratio of the target box.

Now I am not sure how to do this but want to learn how to do it and not just have the program done for me. As such I would like to use the example numbers from above "-10 -5 20 1 1 2 -2" and have it as a file called lineOne.txt and create the target box and the implicit form of the line. Since I am using the example numbers from what I need to do for the project I would like to see how you would do this project and then I can see how to apply these concepts to my own project. Thank you for any possible help!!

1(t) = +t 1(t) = +t

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 Databases Questions!