write C program for Part Two
should write Driver / Test program that implement it . thx
D2L Bright space After completing this assignment students should be able to write C modules/libraries that use: structs memory allocation header files In addition to the Clanguage programming constructs already in their toolbox. During this class exercise we're going to construct some simple functionality for a geographic information system (GIS).x Part One construct and test two modules: one for a String and a Point2D. r each, build a definition and functions to access and manage instances. The intent is that user code does not "touch" the data structure, but that the module code does that. In the case of String you can rely on the existing String library for access and management, however you will need to define a String as a char and write the mallocString and freeString functions. The Point2D module will require not only the mallocPoint2D and freePoint2D functions but the ability to set and get values as well as calculate the distance between two points. Your modules should also be able to read and write individual instances from/to a text file. D2L Bright space After completing this assignment students should be able to write C modules/libraries that use: structs memory allocation header files In addition to the Clanguage programming constructs already in their toolbox. During this class exercise we're going to construct some simple functionality for a geographic information system (GIS).x Part One construct and test two modules: one for a String and a Point2D. r each, build a definition and functions to access and manage instances. The intent is that user code does not "touch" the data structure, but that the module code does that. In the case of String you can rely on the existing String library for access and management, however you will need to define a String as a char and write the mallocString and freeString functions. The Point2D module will require not only the mallocPoint2D and freePoint2D functions but the ability to set and get values as well as calculate the distance between two points. Your modules should also be able to read and write individual instances from/to a text file