You are requested to develop a simple java program for a movie theatre. They need to store the following information: Movie name, year, genre, rating. The values are saved in txt files (choose any movies you like). Read the values from the txt files and store them in parallel arrays. Then calculate/ Find the following: The highest rating movie. The lowest rating movie. The oldest movie. The average rating for a chosen genre. Show your code + screenshots of the code and output.

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...
icon
Related questions
Question

THE QUESTION IS ATTACHED:

PLEASE AVOID USING 

import java.util.ArrayList;

import java.util.HashMap;

import java.util.Map;

BECAUSE I HAVEN'T STUDIED THEM YET, YOU CAN USE 1D AND 2D ARRAYS.

YOU ARE FREE TO USE 

import java.io.File;

import java.io.FileNotFoundException;

import java.io.FileWriter;

import java.io.IOException;

EFFECTIVELY USE LOOPS AND CONTROL STATEMENTS.

ALSO TRY AND CATCH.

TXT. FILE IS INCLUDED BELOW:

MOVIE NAME, MOVIE YEAR, RATING AND GENRE.

The Martian
2015
Adventure
8.0
Murder on the Orient Express
2017
Crime
6.5
X-Men: First Class
2011
Action
7.7
X-Men: Days of Future Past
2014
Action
7.9
This Means War
2012
Action
6.3
Godzilla vs. Kong
2021
Adventure
6.5
Black Widow
2021
Action
7.5
Zack Snyder's Justice League
2021
Action
8.1
The Ten Commandments
1956
Drama
7.9
The Father
2020
Drama
8.3
Nobody
2021
Crime
7.5
Promising Young Woman
2020
Crime
7.5
What Lies Below
2020
Horror
4.4
Shrine
2021
Horror
5.1
Bram Stoker's Dracula
1992
Horror
7.4

Question:
You are requested to develop a simple java program for a movie theatre. They need to store
the following information: Movie name, year, genre, rating. The values are saved in txt files
(choose any movies you like).
Read the values from the txt files and store them in parallel arrays. Then calculate/ Find the
following:
The highest rating movie.
The lowest rating movie.
- The oldest movie.
The average rating for a chosen genre.
Show your code + screenshots of the code and output.
Transcribed Image Text:Question: You are requested to develop a simple java program for a movie theatre. They need to store the following information: Movie name, year, genre, rating. The values are saved in txt files (choose any movies you like). Read the values from the txt files and store them in parallel arrays. Then calculate/ Find the following: The highest rating movie. The lowest rating movie. - The oldest movie. The average rating for a chosen genre. Show your code + screenshots of the code and output.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
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 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)
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
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY