Write a program in C# which will evaluate the equation for f(t) above for values of t ranging from 0 to 2π in steps of 1/100 for the first n terms of the series
(k = 1, 3, 5, … 2n-1) where n is input from the user. Store the values of t and the corresponding values of f(t) in a two dimensional array. Use the function on the next page (WriteFile) to print the stored values in a file named Asn4.txt.
Use either Matlab or Microsoft Excel to read the file and plot the values.
Your program must be modular and make use of functions. For example, consider adding a function which inputs the data and another that calculates the total path length.


0 comments