QuestionAsk Questions?

For this assignment, you are to write a program that calculates points along a rhodonea curve, a.k.a. a mathematical rose, and produces a simple character plot of the results, using functions, arrays, and pointers.

I am lost and need a little help starting please

***int fillArray( double data[ ], int nValues, double min, double max );**

-Used to fill in the theta array. Returns the number of values successfully filled, which will normally be nValues if the input is good or zero if the input is bad.

*** double cos ndtheta( int n, int d, double theta, int *eCode );**

Calculates cos( n/d * theta ). Sets eCode to -1 if there are problems with the input, or zero otherwise.

*** int rose( double theta[ ], double r[ ], int nValues, int n, int d );**

Calls cos*nd*theta nValues times to fill in r given theta.
Returns zero if all input is good or a negative value otherwise.

View Answers

Related Tutorials/Questions & Answers: