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
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
Chapter9: Using Classes And Objects
Section: Chapter Questions
Problem 9E
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.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 4 images
Knowledge Booster
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.Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT