Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

  • image text in transcribed x-data-for-trajectory.cpp (719 B)
  • image text in transcribed 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Theory And Applications 27th Australasian Database Conference Adc 20 Sydney Nsw September 28 29 20 Proceedings Lncs 9877

Authors: Muhammad Aamir Cheema ,Wenjie Zhang ,Lijun Chang

1st Edition

3319469215, 978-3319469218

More Books

Students also viewed these Databases questions

Question

Explain the importance of nonverbal messages.

Answered: 1 week ago

Question

Describe the advantages of effective listening.

Answered: 1 week ago

Question

Prepare an employment application.

Answered: 1 week ago