There are total 4 classes. Student class is inherited and publicly accessed by 2 more classesFirstYearStudent and SecondYearStudent and there is 1 more School class. So total 4 classes
In main function when School object is called 100 constructors from FirstYearStudent of Student and 100constructors from SecondYearStudent of Student and 1 of school constructor and 100 constructor of FirstYearStudent itself and 100 constructors of SecondYearStudent which means s a total of 401 objects will be created because 401 will be created.
Write a computer code that: 1. (5 points total) Takes as input: a. (1 point) A...
Please use matlab to code this program. Write a computer program that takes as input an angle β and the components of a position vector in frame A (i.e. r). The transformation from frame A to frame B is a rotation about the 1-axis. Your code should calculate the DCM CAB, and the components of the vector in frame B (i.e.rB. Your code should output all of the following, including a label and units (if applicable) for each: CAB 4.8...
Matlab code for this problem. 1[35pl Write a user-defined MATLAB function that determines the unit vector in the direction of the line that connects two points (A and B) in space. For the func- tion name and arguments, use n = unitvec (A,B). The input to the function are two vectors A and B, each with the Cartesian coordinates of the corre- sponding point. The output is a vector with the components of the unit vector in the direction from...
The following snippet of code will store the r and y coordinates of 10 points in 4 different row vectors and then plots 5 vectors between certain pairs of those points Show/hide Matlab code snippet 1 A-1:5; B A +1/sqrt (2); C = ones(1,5) D C +1/sqrt (2); plot([A; B], [C; D]) axis equal Which of the following statements about the plot produced by the above snippet of Matlab code are correct. The vectors plotted are the vectors from the...
Just Need help with orange vector a in box can't figure out position, angle and length. Tactics Box 1.3 Finding the Acceleration Vector 4 of 1 Below is a motion diagram for an object that moves along a linear path. The dots represent the position of the object at three subsequent instan t1, t2. and t3. The vectors u21 and v32 show the average velocity of the object for the initial time interval Δ 21-t2 t1, and the final time...
If the number is a decimal please include 4 digits past the decimal point if available. 1. -12 points PSE6 4.P.002. My Notes A golf ball is hit off a tee at the edge of a cliff. Its x and y coordinates as functions of time are given by the following expressions. x (20.0 m/s)t y (4.90 m/s)t -(4.76 m/s2)t2 (a) Write a vector expression for the ball's position as a function of time, using the unit vectors i and...
4. -14 points SerPSE9 4.P006.W A particle initially located at the origin has an acceleration of a 1.00j m/s2 and an initial velocity of V, 8.001 m/s. (a) Find the vector position of the particle at any time t (where t is measured in seconds). t2 1) m tl+ (b) Find the velocity of the particle at any time t. t 1) m/s (c) Find the coordinates of the particle at t 5.00 s. (d) Find the speed of the...
points Instruction: Work neatl each) v,write all assumption clearly. Solve the problems step by step. Show all calculation (22 Problem 1 The position of a point starting at rest is given by r-t( t2-4e+ 12) meters a) What is the maximum velocity during this interval of time and what time does it occurs? b) What is the acceleration when the velocity is a maximumi? Knowledge (Equation that Governing the phenomenon) (4 points) ven Application (Solution Procedure, show all computations) (18)
5. General Motion with Unit Vectors and Components An object undergoes the following consecutive displacements: s (2i +3j +5k)m,s2 (6i- 9j + 2k)m, and s3 (10i 8j -k)m. a) Find the resultant displacement in terms of unit vectors and components. b) State the magnitude of the resultant displacement. 2. Suppose a hiker travels 5 km southwest from their camp. Then, the hiker travels 2 km 75° north of east. a) Find the displacement of the hiker form their camp. b)...
please solve in matlab 1[35p) Write a user-defined MATLAB function that determines the unit vector in the direction of the line that connects two points (A and B) in space. For the func- tion name and arguments, use n = unitvec (A,B). The input to the function are two vectors A and B, each with the Cartesian coordinates of the corre- sponding point. The output is a vector with the components of the unit vector Join the direction from A...
4) (12 points) Write the CH code that continuously (use a loop) prompts a user to input a floating point number. Each time, the code prints out the input, numbered. So if the user inputs a -2.3 for the first input and a 116.79 for the second input, the output is input 1: -2.3 input 2: 116.79 The loop keeps running until the sum of all the numbers input is greater than 100. (This needs an accumulator!)