hey friends, i am a C++ programmer,
and have notice people need someone
to help them write a part or full part of
there C++ program. if you need
someone to help you program part of
your projet or assignment in C++ you can count on me, but after i complete
the job, you may if u want pay me any
amount of money you want or none.
anybody intrested should comment lets
talk
hey. I am a student in physics and I have just some basic knowledge in C# and Cpp. I got interested on some theory in my field but I am stuck on a code: I have an iterative map given by the set of equation
"a" in the equations is a parameter.
the fixed points of such a function are obtained from
x(n+1) = x(n)
y(n+1) = y(n)
and i have to plot the variation of x(n) from the fixed point with respect to "a" ( the plot should normalLy display a straight line that divides into two part when "a" reaches the value a=4, but the code I wrote gives me the division of the straight line instead at "a=2". The inexperience i have in programming makes me seriously my code.
I know you proposed your help about Cpp but I think i may still be helpful if I post my C# code:
#define N 600 //total number of iterations
#define N1 480
int main()
{
int i;
double a, x,y;
FILE *biff;
biff = fopen("f4.txt","w");
for(a=a_min; a<=a_max; a+=stepa) //vary a fron 0 to 8
{
x= .01; //initial value for x (should be less than 1)
y= .01 ; //initial value for y (should be less than 1)
for(i=0; i<=N1; i++) //the code first iterates N1 times
{
x= 2*x - y + a*x*(x*x -1.) ;
y = x;
}
for(i=N1+1; i<=N; i++) //the code will do the remaining 120 iterations and store the
values
{
x = 2*x - y + a*x*(x*x -1.) ;
x = y;
fprintf(biff, "%f\t%f\n", a,x); //store x with respect to a in the file for an ulterior plot
}
}
fclose(biff);
}
I hope you will be able to help me, whatver, you already have my thanks
Please i need help to structure the code below in a tabular format can't seem to figure it out.
Listing items vertically, column by column in the table.
// values for controlling format
constint name_width = 15 ;
constint int_width = 7 ;
constint dbl_width = 12 ;
constint num_flds = 7 ;
const std::string sep = " |" ;
auto total_width = name_width*2 + int_width*2 + dbl_width*3 + sep.size() * num_flds ;
const std::string line = sep + std::string( total_width-1, '-' ) + '|' ;
cout<<"How many people ordered? ";
cin>>odrs; // Store number of orders
for(int i=1; i<=odrs; i++){
cout<<"Enter the name of person #"<<i<<":"<<endl;;
cin>>names; // Store names of users
odrNames.push_back(names); // Store names as entered as
cout<<"How many orders of cider did "<<names<<" have? ";
cout<<endl;
cin>>odrciderjuice; // Store Cider order item
sbCider = odrciderjuice * 5.5; // Calculate Cider order per price
odrCider.push_back(odrciderjuice); // Store Cider order item based on entry
SbCider.push_back(sbCider); // Store calculated Cider order per price
cout<<"How many orders of apple juice did "<<names<<" have? ";
cout<<endl;
cin>>odrapplejuice; // Store Juice order item
sbJuice = odrapplejuice * 4.5; // Calculate Juice order per price
odrApple.push_back(odrapplejuice); // Store Juice order item based on entry
SbJuice.push_back(sbJuice); // Store calculated Juice order per price
cout<<endl;
total = sbCider + sbJuice; // Calculate total between Cider and Juice
GTotal.push_back(total); // Store total values after calculation
cout<<endl;
}
for(vector<string>::iterator naming = odrNames.begin(); naming!= odrNames.end(); ++naming)
cout << sep << std::setw(name_width) << *naming<<"\v";
for(vector<int>::iterator ciderOdr = odrCider.begin(); ciderOdr!= odrCider.end(); ++ciderOdr)
cout <<*ciderOdr;