This C program code generates elastic response spectra including displacement, pseudo-acceleration, and pseudo-velocity spectra needed for structural response spectrum analysis. The code uses the Newmark linear method to solve the equation of motions for different periods. It inputs ground motion acceleration data, performs the analysis, and outputs the response spectra and graphs the results in an HTML file for visualization.