Question: You are required to develop a piece of C++ program to perform the Differentiation and Integration of a polynomial equation with 2 expressions. For Example
You are required to develop a piece of C++ program to perform the Differentiation and Integration of a polynomial equation with 2 expressions. For Example : 4 2 Using the application on Motion as basis, your program should be able to calculate the Displacement, Velocity and Acceleration as requested by users based on the value of t supplied.
Equation: 4 2 If Type of equation: Velocity Coefficient of expression 1: 4 Power of expression 1: 2 Coefficient of expression 2: -1 Power of expression 2: 1 Value of t = 3
If Find Displacement (Integration): () = 4 3 3 2 2 (3) = 36 9 2 = 63 2 If Find Velocity: () = 4 2 (3) = 108 3 = 105 If Find Acceleration: () = 8 1 () = 24 1 = 23

Please input the expression For example: 2t^3 is coefficient=2, power=3 Coefficient for expression 1:4 Please input the expression For example: 2t^3 is coefficient=2, power=3 Coefficient for expression 1:4 Power for expression 1: 2 Coefficient for expression 2:-1 Power for expression 2: 1 Power for expression 1: 2 Coefficient for expression 2:-1 Power for expression 2: 1 Is this an equation for 1. Displacement 2. Velocity 3. Acceleration 2 Is this an equation for 1. Displacement 2. Velocity 3. Acceleration 1 Value of t = 3 What would you like to find: 1. Displacement 2. Velocity 3. Acceleration 1 Value of t = 3 What would you like to find: 1. Displacement 2. Velocity 3. Acceleration 3 Displacement when t = 3 is 31.5 Acceleration when t = 3 is 8 Process xited after 11.35 seconds with return value Press any key to continue ... Process exited after 17.83 seconds with return value o Press any key to continue V(t) = 4t2 - t D(t) = 4t2 - t = --- = 4t3 D(t) 3 D(3) = 36 t2 2 9 63 2 2 V(t) = 8t - 1 A(t) = 8 A(3) = 8 = -- =
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
