Write a C++ program with a nested loop structure that displays the sinusoidal curve f(α)=35sin() in ‘*’ for f(α) ≥ 0 and in ‘o’ for f(α) < 0 as shown in Fig. 1. The curve starts at =0, and the sampling step-size of the curve is 0.1π. You program should plot at least a full cycle (0 ≤ ≤ 2π)
1
Expert's answer
2012-09-13T11:45:03-0400
#include <math.h> #include<iostream> using namespace std;
int main() { & float a,b,c,d,x,pi=3.141592; int i,j,k; cout<<"The sin curve is plotted below:& \n\n";
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment