Develop a Java program for managing a list of courses stored in a file named "Courses.txt." The program should: Display all courses in the collection. Show courses introduced in the last three years (2022-2024). Calculate the average difficulty level of all courses. Generate a frequency distribution of course subjects. Store all courses from "Courses.txt" in a Java TreeMap. Output the unique instructors in the collection. Output the total number of entries in your TreeMap. Courses.txt: "Introduction to Java Programming", Computer Science, 2020, Intermediate, John Smith "Artificial Intelligence Basics", Computer Science, 2023, Advanced, Emily Rodriguez "Financial Accounting Fundamentals", Business, 2021, Beginner, David Johnson "Spanish Language Essentials", Linguistics, 2022, Intermediate, Maria Garcia "Environmental Science Fundamentals", Environmental Science, 2024, Beginner, Lisa Thompson "Digital Marketing Strategies", Marketing, 2023, Advanced, Michael Davis "Psychology 101", Psychology, 2022, Beginner, Susan White

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter18: Stacks And Queues
Section: Chapter Questions
Problem 16PE: The implementation of a queue in an array, as given in this chapter, uses the variable count to...
icon
Related questions
Question
Don't give me AI generated answer or plagiarised answer. If I see these things I'll give you multiple downvotes and will report immediately.
Develop a Java program for managing a list of courses stored in a file named
"Courses.txt." The program should:
Display all courses in the collection.
Show courses introduced in the last three years (2022-2024).
Calculate the average difficulty level of all courses.
Generate a frequency distribution of course subjects.
Store all courses from "Courses.txt" in a Java TreeMap.
Output the unique instructors in the collection.
Output the total number of entries in your TreeMap.
Courses.txt:
"Introduction to Java Programming", Computer Science, 2020, Intermediate, John
Smith
"Artificial Intelligence Basics", Computer Science, 2023, Advanced, Emily Rodriguez
"Financial Accounting Fundamentals", Business, 2021, Beginner, David Johnson
"Spanish Language Essentials", Linguistics, 2022, Intermediate, Maria Garcia
"Environmental Science Fundamentals", Environmental Science, 2024, Beginner, Lisa
Thompson
"Digital Marketing Strategies", Marketing, 2023, Advanced, Michael Davis
"Psychology 101", Psychology, 2022, Beginner, Susan White
Transcribed Image Text:Develop a Java program for managing a list of courses stored in a file named "Courses.txt." The program should: Display all courses in the collection. Show courses introduced in the last three years (2022-2024). Calculate the average difficulty level of all courses. Generate a frequency distribution of course subjects. Store all courses from "Courses.txt" in a Java TreeMap. Output the unique instructors in the collection. Output the total number of entries in your TreeMap. Courses.txt: "Introduction to Java Programming", Computer Science, 2020, Intermediate, John Smith "Artificial Intelligence Basics", Computer Science, 2023, Advanced, Emily Rodriguez "Financial Accounting Fundamentals", Business, 2021, Beginner, David Johnson "Spanish Language Essentials", Linguistics, 2022, Intermediate, Maria Garcia "Environmental Science Fundamentals", Environmental Science, 2024, Beginner, Lisa Thompson "Digital Marketing Strategies", Marketing, 2023, Advanced, Michael Davis "Psychology 101", Psychology, 2022, Beginner, Susan White
Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Files and Directory
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning