Question: Use c++ only 10.) (35) Code a program to read in the radius (r), the height (h), and the slant height(s) of a cone from
10.) (35) Code a program to read in the radius (r), the height (h), and the slant height(s) of a cone from a file. Calculate the surface area (P1rs + P1 ) and volume (1/3Ph) of the cone. Print the answers to the screen with"appropriate column headings. There will be multiple sets of data - choose your own end of file handling (sentinel, count first, physical end of the file). The calculations and output must be done in at least three separate methods (other than main) which will be called by main. Use all local variables, except PI, which may be set up as a global constant. Use the bottom of this sheet
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
