program that prompts the user whetherto convert from Cartesian…
Question Answered step-by-step program that prompts the user whetherto convert from Cartesian… program that prompts the user whetherto convert from Cartesian coordinates to polar coordinates andthe other way around; and then prompts the user for the nameof an input file. The input file will contain a number ofcoordinates. The program will read in and convert eachcoordinate in the input file. The converted coordinates areprinted in an output file called”convert.out”. Use a structuresto represent the points. (PLEASE SHOW THEOUTPUT AND INPUT FILE ON THE PRINT SCREEN)In order to do this assignment, you will need the mathematicsfunctions sin, cos, andtan. These functions are in the mathematicslibrary. You need to include this library in your program(i.e. the statement: #include


