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

Use c++ only  Use c++ only 10.) (35) Code a program to read in

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!