Computers and Technology

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 03:30, rebekah2503
Identify at least three types of characteristics that you were asked about as you the computer identify a fruit.
Answers: 3
image
Computers and Technology, 22.06.2019 15:30, mikey3882
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
image
Computers and Technology, 23.06.2019 22:30, ghari112345
Jamie has to enter the names, employee id’s, and income of a group of employees into a worksheet. which option will jamie use to describe the data
Answers: 3
image
Computers and Technology, 24.06.2019 01:00, summerjoiner
Verify each identity[tex] \frac{csc}{cot \: x \: + \: tan \: x} = cos \: x[/tex]
Answers: 1
Do you know the correct answer?
The file below contains first and last names and the radii of circles. You'll need to cut and paste...

Questions in other subjects: