Question: Write a C program that will generate n random points. Both the X-coordinate and the Y-coordinate are integer values that are between -15 and 15.

Write a C program that will generate n random points. Both the X-coordinate and the Y-coordinate are integer values that are between -15 and 15. The number comes in from the command line as argv[1]. The points are to be stored in a file. The name of the file comes into your program as argv[2]. You must use the rand() function.

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!