subject

The file below contains first and last names and the radii of circles. You'll need to cut and paste the data into a text file. Write a program to read the file and store the last names and the radii in two arrays. You'll need an array of type string and another array of some numeric type. The arrays should each hold 14 elements. Then, print out the last names and the circled areas, each in a column of width 12. Make sure you match the implied output format and that you check for a successful file open. Include a function to calculate the circle area using the formula: Area = PI * radius * radius

For PI, use a named constant equal to 3.14159265

Input data - copy to a text file and make sure there is a newline at the end of the last line in the file.

LoriBeth Allen 79
Chachi Arcola 125
Richie Cunningham 171
Howard Cunningham 255
Marion Cunningham 252
Joanie Cunningham 234
Al Delvecchio 122
Arthur Fonzarelli 255
Ralph Malph 165
Ashley Pfister 19
Roger Phillips 61
Jenny Piccalo 55
Mitsumo Takahashi 26
Potsie Weber 210

The Output should look the same as bellow so instead of first name last name appears like bellow.

Allen 19606.680
Arcola 49087.385
Cunningham 91863.311
Cunningham 204282.062
Cunningham 199503.700
Cunningham 172021.047
Delvecchio 46759.465

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
Answers: 2
question
Computers and Technology, 25.06.2019 07:30
What does the hard disk drive do? it stores all of the information on a computer. it controls a computer’s operating system. it enables visual interaction with a computer. it contains all of a computer’s internal parts.
Answers: 1
You know the right answer?
The file below contains first and last names and the radii of circles. You'll need to cut and paste...
Questions
question
Mathematics, 04.05.2021 22:30
question
English, 04.05.2021 22:30
question
Mathematics, 04.05.2021 22:30
question
Mathematics, 04.05.2021 22:30
Questions on the website: 13722367