Question 3
Bonus points will be added at the end after the exam has been graded.
The volume V and surface area A of a sphere of radius r are given by V = (4/3)Ï€r^3 and A = 4Ï€r^2. Plot V and A on the y-axis versus r on the x-axis in two subplots. In a program/script, ask the user to enter the range of values for r (error checking NOT required) and then use this range for testing with increments of 0.1.
Make sure:
- To follow the Program Template and use Good Programming Style.
- To upload your file(s) (fig or graphic file of plot and m file - if you have more than one file, upload others as Assignment Comments after you have submitted the first file).