eads a list DOOK haracters from a file named "Characters.txt" and accomplishes the following tasks: Display all the characters in the list. Identify and display characters from fantasy genre books. Calculate the average age of all characters in the list. Create a frequency distribution of character races in the list. Each element in the distribution should represent the count of characters belonging to a specific race. Store all the characters in "Characters.txt" in a Java TreeSet. Output all unique authors of the books featuring these characters. Output the total number of entries in your TreeSet. Characters.txt: "Aragorn", Human, 87, Fantasy, J.R.R. Tolkien "Hermione Granger", Human, 20, Fantasy, J.K. Rowling "Gandalf", Wizard, N/A, Fantasy, J.R.R. Tolkien "Lyra Belacqua", Human, 12, Fantasy, Philip Pullman "Tyrion Lannister", Dwarf, 38, Fantasy, George R.R. Martin "Sherlock Holmes", Human, 34, Mystery, Arthur Conan Doyle "Elizabeth Bennet", Human, 23, Romance, Jane Austen

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
You guys use AI tool to answer. Last time I found plagiarism and AI detection in my answer. Now If you will use these things I'll surely give multiple downvotes and will report ⚠️ sure.
a program in Java that reads a list of book characters from a file named
"Characters.txt" and accomplishes the following tasks:
Display all the characters in the list.
Identify and display characters from fantasy genre books.
Calculate the average age of all characters in the list.
Create a frequency distribution of character races in the list. Each element in the
distribution should represent the count of characters belonging to a specific race.
Store all the characters in "Characters.txt" in a Java TreeSet.
Output all unique authors of the books featuring these characters.
Output the total number of entries in your TreeSet.
Characters.txt:
"Aragorn", Human, 87, Fantasy, J.R.R. Tolkien
"Hermione Granger", Human, 20, Fantasy, J.K. Rowling
"Gandalf", Wizard, N/A, Fantasy, J.R.R. Tolkien
"Lyra Belacqua", Human, 12, Fantasy, Philip Pullman
"Tyrion Lannister", Dwarf, 38, Fantasy, George R.R. Martin
"Sherlock Holmes", Human, 34, Mystery, Arthur Conan Doyle
"Elizabeth Bennet", Human, 23, Romance, Jane Austen
Transcribed Image Text:a program in Java that reads a list of book characters from a file named "Characters.txt" and accomplishes the following tasks: Display all the characters in the list. Identify and display characters from fantasy genre books. Calculate the average age of all characters in the list. Create a frequency distribution of character races in the list. Each element in the distribution should represent the count of characters belonging to a specific race. Store all the characters in "Characters.txt" in a Java TreeSet. Output all unique authors of the books featuring these characters. Output the total number of entries in your TreeSet. Characters.txt: "Aragorn", Human, 87, Fantasy, J.R.R. Tolkien "Hermione Granger", Human, 20, Fantasy, J.K. Rowling "Gandalf", Wizard, N/A, Fantasy, J.R.R. Tolkien "Lyra Belacqua", Human, 12, Fantasy, Philip Pullman "Tyrion Lannister", Dwarf, 38, Fantasy, George R.R. Martin "Sherlock Holmes", Human, 34, Mystery, Arthur Conan Doyle "Elizabeth Bennet", Human, 23, Romance, Jane Austen
Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education