Question
we introduced a simple process of adding text to graphs and figures with the class CTextBoxes. Make use of this basic text capability to label
we introduced a simple process of adding text to graphs and figures with the class CTextBoxes. Make use of this basic text capability to label the graphs and curves that you created in Exercises 1 and 2 above.
Exercise 2
Extend the plotting program of Exercise 1 above. Consider the position equation for a body moving from rest with constant acceleration so that:
Revise your program so that two graphs are plotted for your chosen set of parameters and for the three acceleration levels from an initial position and velocity of zero. Place the velocity vs. time graph from Exercise 1 on the left and the new position vs. time graph on the right.
Exercise 1
Using the project Grapher (Chap9lZ-Grapher) as a model, write a program to plot calculations based on the simple physics problem of a body moving with a constant acceleration. The equation you will need for velocity calculations is:
From an initial velocity of zero, select a suitable set of parameters and suitable scaling for a graph. Plot a graph of velocity vs. time using the CGraphs and CCurves classes. Now consider twice your chosen acceleration and three times your chosen acceleration. Develop CCurves objects for these cases and plot three velocity vs. time curves on your graph - one for each acceleration value. Adjust your graph scale so that the curves fit the graph nicely.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started