Buy ready-to-submit essays. No Plagiarism Guarantee!
Note: All our papers are written by real people, not generated by AI.
Write C code to
Check your essay before you submit. See exactly what your professor sees.
See your AI and plagiarism results before your instructor does.Get the exact same report your professor uses. Trusted by 50,000+ students worldwide.
. The altitude (ft) from the sea level and the corresponding time (sec) for a fictitious rocket were measured as follows: Time 0 20 40 6080100120140160180200 Altitude370 9170 23835 45624 62065 87368 97355 103422 127892 149626160095 Numerically compute the velocity from the table above using the central difference scheme. Use equation (1) at t-0 and equation (2) at t 200 f(x) Eq. 1 2 h f(x) Eq. 2) 2 h Make sure that you attach example runs showing the results from the computer Show transcribed image text . The altitude (ft) from the sea level and the corresponding time (sec) for a fictitious rocket were measured as follows: Time 0 20 40 6080100120140160180200 Altitude370 9170 23835 45624 62065 87368 97355 103422 127892 149626160095 Numerically compute the velocity from the table above using the central difference scheme. Use equation (1) at t-0 and equation (2) at t 200 f(x) Eq. 1 2 h f(x) Eq. 2) 2 h Make sure that you attach example runs showing the results from the computer
Expert Answer
#include
//for time equals 0 using equation 1
double f1(long int h[])
{
double v;
v = 4*h[1]-h[2]-3*h[0];
v=v/(2*h[0]);
return v;
}
//for time =200// using equation 2
double f2(long int h[])
{
double v;
v=3*h[10]-4*h[9]+h[8];
v=v/(2*h[10]);
return v;
}
//for remaing time values.
double f(int x,long int t[],long int h[])
{
double v;
v = h[x+1]-h[x-1];
v =v/(t[x+1]-t[x-1]);
return v;
}
int main()
{
//array declarations
long inttime[]={0,20,40,60,80,100,120,140,160,180,200};
long intaltitude[]={370,9170,23835,45624,62065,87368,97355,103422,127892,149626,160095};
double vel[10];
//calculating velocities..using central differencescheme…
int x;
for(x=0;x<11;x++)
{
printf(“Time:%ldn”,time[x]);
printf(“Altitude :%ldn”,altitude[x]);
if(time[x]==0)
{
printf(“Result :%lfn”,f1(altitude));
}
else if(time[x]==200)
{
printf(“Result :%lfn”,f2(altitude));
}
else
{
printf(“Result :%lfn”,f(x,time,altitude));
}
}
return 0;
}
output:-
Time :0
Altitude : 370
Result : 15.858108
Time :20
Altitude : 9170
Result : 586.625000
Time :40
Altitude : 23835
Result : 911.350000
Time :60
Altitude : 45624
Result : 955.750000
Time :80
Altitude : 62065
Result : 1043.600000
Time :100
Altitude : 87368
Result : 882.250000
Time :120
Altitude : 97355
Result : 401.350000
Time :140
Altitude : 103422
Result : 763.425000
Time :160
Altitude : 127892
Result : 1155.100000
Time :180
Altitude : 149626
Result : 805.075000
Time :200
Altitude : 160095
Result : 0.030210
Process exited normally.
Press any key to continue . . .
I lOVE this Professional essay writing website. This is perhaps the fifth time I am placing an order with them, and they have not failed me not once! My previous essays and research papers were of excellent quality, as always. With this essay writing website, you can order essays, coursework, projects, discussion, article critique, case study, term papers, research papers, research proposal, capstone project, reaction paper, movie review, speech/presentation, book report/review, annotated bibliography, and more.
Post your homework questions and get original answers from qualified tutors!

