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
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