Question: C++ Array The file below contains first and last names and the radii of circles. Write a program to read the file and store the
C++ Array
The file below contains first and last names and the radii of circles. Write a program to read the file and store the first names and the radii in two arrays. You'll need an array of type string and an another array of some numeric type. The arrays should each hold 12 elements. Then, print out the first names and the circle areas, each in a column of width 10. Make sure you match the implied output format and that you check for a successful file open. Include a function to calculate of the circle area, using the formula:
Area = PI * radius * radius
For PI, use a named constant equal to 3.14


Input data (copy to a text file) LoriBeth Allern Chachi Arcola Richie Cunningham 171 Howard Cunningham 255 Marion Cunningham 252 Joanie Cunningham 234 Al Delvecchio Arthur Fonzarelli 255 Ralph Malph Roger Phillips Jenny Piccalo Potsie Weber 79 125 122 165 61 210
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
