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
Get step-by-step solutions from verified subject matter experts
