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.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Modularization Techniques
Section: Chapter Questions
Problem 1GZ
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.

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 2 steps with 3 images

Blurred answer
Knowledge Booster
Concept of Threads
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT