How can I apply this function Y = d+asin(bx-c) in the code shown below? Where a represents the amplitude

I’m usin Visual Studio 2013