Create a Java program for managing a list of mobile phones stored in a file named "Phones.txt." The program should: Display all mobile phones in the collection. Present mobile phones released in the last four years (2020-2024). Calculate the average user rating of all mobile phones. Create a frequency distribution of mobile phone brands. • Store all mobile phones from "Phones.txt" in a Java Linked HashMap. Output the unique manufacturers in the collection. • Output the total number of entries in your LinkedHashMap. . Phones.txt: "iPhone 12", Apple, 2020, 4.7 "Samsung Galaxy S21", Samsung, 2021, 4.6 "OnePlus 9", OnePlus, 2021, 4.5 "Google Pixel 6", Google, 2022, 4.8 "Xiaomi Mi 11", Xiaomi, 2021, 4.4 "Sony Xperia 5 III", Sony, 2023, 4.5 "Huawei P50", Huawei, 2024, 46
Create a Java program for managing a list of mobile phones stored in a file named "Phones.txt." The program should: Display all mobile phones in the collection. Present mobile phones released in the last four years (2020-2024). Calculate the average user rating of all mobile phones. Create a frequency distribution of mobile phone brands. • Store all mobile phones from "Phones.txt" in a Java Linked HashMap. Output the unique manufacturers in the collection. • Output the total number of entries in your LinkedHashMap. . Phones.txt: "iPhone 12", Apple, 2020, 4.7 "Samsung Galaxy S21", Samsung, 2021, 4.6 "OnePlus 9", OnePlus, 2021, 4.5 "Google Pixel 6", Google, 2022, 4.8 "Xiaomi Mi 11", Xiaomi, 2021, 4.4 "Sony Xperia 5 III", Sony, 2023, 4.5 "Huawei P50", Huawei, 2024, 46
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question

Transcribed Image Text:Create a Java program for managing a list of mobile phones stored in a file named
"Phones.txt." The program should:
• Display all mobile phones in the collection.
• Present mobile phones released in the last four years (2020-2024).
• Calculate the average user rating of all mobile phones.
• Create a frequency distribution of mobile phone brands.
• Store all mobile phones from "Phones.txt" in a Java Linked HashMap.
• Output the unique manufacturers in the collection.
Output the total number of entries in your LinkedHashMap.
Phones.txt:
"iPhone 12", Apple, 2020, 4.7
"Samsung Galaxy S21", Samsung, 2021, 4.6
"OnePlus 9", OnePlus, 2021, 4.5
"Google Pixel 6", Google, 2022, 4.8
"Xiaomi Mi 11", Xiaomi, 2021, 4.4
"Sony Xperia 5 III", Sony, 2023, 4.5
"Huawei P50", Huawei, 2024, 4.6
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 5 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY