• Forum
  • Jobs
  • if you need help in your C++ assignment,

 
if you need help in your C++ assignment, program, project you can count on me

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

x(n+1) = 2*x(n) - y(n) + a*x(n)*( x(n)^2 - 1 )
y(n+1) = x(n+1)

"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:

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#define stepa 0.001
#define a_min 0.0
#define a_max 8.

#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
ok let me try my best
but is not guaranty cos i was talking about C++
Last edited on
Just want to say thank you for the offer
hey. I am computer science student given project about coding a "stack calculator". Can you help going through the algorithm please!
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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// values for controlling format
const int name_width = 15 ;
const int int_width = 7 ;
const int dbl_width = 12 ;
const int 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;
Topic archived. No new replies allowed.