Question: write one complete c++ program to calculate the circumference (c=2PIr) of a circle and the area (a =PIr^2 ) of a circle. the radius should
write one complete c++ program to calculate the circumference (c=2PIr) of a circle and the area (a =PIr^2 ) of a circle. the radius should be entered from a input file an PI should be set up as a constant in the program. the radius, area, and circumference will be stored on an output file with headings. you do not have to include the 2 columns of information at the top of the program or the program description. however, do include any processor commands ( like include, etc). this program should include at leady 4 functions: reafFileData, PrintFileData, cakcArea and call circumference. Use your own end of file pricessing- a trailer of -1, a count in front of the data on the file, ora test for fin.eof().
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
