• Forum
  • Jobs
  • C++ program creation Job- Quick money

 
C++ program creation Job- Quick money

I want to pay someone to modify an existing cxx file to fit the assignment. The coding is pretty much done just need changes as per my professor. She said to use the same cxx file we created in class. I will give you the assignment here and the coding here too (since I can't attach a file). How do we settle payment? $60 DUE THURSDAY 8PM

Complete the Biker program with or without airdrag, including the comparison with the theoretical solution for the case without airdrag.

ASSIGNEMENT 1
Use your (working) program to get a feeling on how the size of the time interval influence the precision. Change $\Delta t$ to various values 2s, 1s, 0.1s, 0.01s and see how the solution without airdrag deviates from the theoretical curve. You can run the program multiple times and same the canvas to a picture. If you feel inspired the canvas can be "printed" to a pdf using the member function Print

ASSIGNEMENT 2
Determine from your program the terminal velocity (perhaps you might want to increase the time interval to 60 seconds)
Vary the parameters and see how the terminal velocity changes. In particular
Increase the weight by 50% (105 kg)
Increase the power by 10% (440 W)
Decrease the area by 10%
Write the results with the terminal velocities in a text file



Use the same CODING we did in class:

#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <cmath>
#include <iomanip>
#include <cstdio>

#include "TROOT.h"
#include "TCanvas.h"
#include "TGraph.h"
#include "TApplication.h"
#include "TRint.h"
#include "TF1.h"

using namespace std;
#define NPOINTS 1000


int main(int argc, char **argv){

//ROOT stuff
TRint theApp("App",&argc,argv);
TCanvas *c = new TCanvas("c", "Solution", 400, 400);

float Ndecay [1000];
float t[1000];
Ndecay[0]=10;
float deltaT= 0.1;
float Halflife=1;//Tao

for (int i=0; i<1000-1; i++)
{
t[i]=i*deltaT;//
Ndecay[i+1]=Ndecay[i]-(Ndecay[i]/Halflife)*deltaT;
}


TF1 *f=new TF1("fun","100*exp(-x/1)",0,5);
f->SetLineColor(3);
f->Draw();

TF1 *f2=new TF1("fun","100*exp(-x/1)",0,5);


c->Update();
theApp.Run();
}

Last edited on
i can help you if you still interest
i need the "TF1.h" file
BR
Is this still up? I guess I can help you with your programming problem!
no ideal
Topic archived. No new replies allowed.