Question: Attached Files: x-data-for-trajectory.cpp (719 B) read-x-data-points-from-txt-file.cpp (726 B) 2d trajectory: x.txt generated from x-data-for-trajectory.cpp o Complete the remaining part of read-x-data-points-from-txt-file.cpp o read data points

Attached Files:

  • Attached Files: x-data-for-trajectory.cpp (719 B) read-x-data-points-from-txt-file.cpp (726 B) 2d trajectory: x.txt generated x-data-for-trajectory.cpp (719 B)
  • from x-data-for-trajectory.cpp o Complete the remaining part of read-x-data-points-from-txt-file.cpp o read data read-x-data-points-from-txt-file.cpp (726 B)

2d trajectory:

x.txt generated from x-data-for-trajectory.cpp

o Complete the remaining part of read-x-data-points-from-txt-file.cpp

o read data points and print on screen using while loop

o upload your code

x-data-for-trajectory.cpp (719 B)

#include #include #include using namespace std;

int main() { // let theta = 30 degree float theta = 30*M_PI/180; // degree converted to radian float v_0 = 200.00; float g=9.81; // m/s^2 float X_max = pow(v_0, 2)*sin(2*theta)/g; cout

return 0; }

read-x-data-points-from-txt-file.cpp (726 B)

/ x.txt provide x data points for a 2d trajeectory // given theta = 30 degree, v_0 = 200 m/s

#include #include #include using namespace std; int main() { float theta = 30*M_PI/180; // 30 degree converted to radian float v_0 = 200; // m/s float g = 9.81; // m/s^2 double a = tan(theta); double b = g/(2*pow(v_0*cos(theta), 2)); cout > x_data; cout > x_data; cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!