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, 23.06.2019 01:30
1. which of the following is a search engine? a) mozilla firefox b)internet explorer c)google d)safari 2. which of the following statements is true? a) all search engines will provide the same results when you enter the same query. b) all search engines use the same amount of advertisements. c) some search engines are also browsers. d) search engines often provide different results, even when you enter the same query.
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
Research data that is presented using descriptive language is said to be
Answers: 2
question
Computers and Technology, 23.06.2019 23:00
Lucas put a lot of thought into the design for his company's new white paper. he made sure to include repeating design elements such as color schemes and decorative images. his goal was to a.add symmetry b.create a unified publication c.provide consistency d.save money
Answers: 1
question
Computers and Technology, 24.06.2019 20:30
How is energy expended in active transport
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, 24.03.2020 05:41
Questions on the website: 13722359