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

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter9: Using Classes And Objects
Section: Chapter Questions
Problem 9E
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT