Hey guys

my first post

I'm currently stuck. I have a project about a projectile that has been launched, and for the last part (there are 3), you have to analyze the data.

the question :

Write the position information to a text file
Calculate the energy information and write it to a text file
Display a summary of the simulation


Write code for the following function: You must ask the user to enter a filename. Use strcat to add
the extension ".CSV" to the filename. (An easy optional task is to check whether the user did not
already enter an extension)

We haven't done this in the lectures, and since exams are around the corner I'm busy as hell.

Could anyone help? either by giving part of the code or by explaining how?