I need to write a JAVA program that will allow me to insert "movies.csv" and output "Wonders of the World | G | 16:40 20:00 End of the Universe | NC-17 | 19:00 Buffalo Bill And The Indians or Sitting Bull | PG | 12:45 15:00 19:30 Adventure of Lewis and Clark | PG-13 | 10:00 14:30 Halloween" with the contents of movies.csv being "16:40,Wonders of the World,G 20:00,Wonders of the World,G 19:00,End of the Universe,NC-17 12:45,Buffalo Bill And The Indians or Sitting Bull's History Lesson,PG 15:00,Buffalo Bill And The Indians or Sitting Bull's History Lesson,PG 19:30,Buffalo Bill And The Indians or Sitting Bull's History Lesson,PG 10:00,Adventure of Lewis and Clark,PG-13 14:30,Adventure of Lewis and Clark,PG-13 19:00,Halloween,R"

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I need to write a JAVA program that will allow me to insert "movies.csv" and output "Wonders of the World | G | 16:40 20:00 End of the Universe | NC-17 | 19:00 Buffalo Bill And The Indians or Sitting Bull | PG | 12:45 15:00 19:30 Adventure of Lewis and Clark | PG-13 | 10:00 14:30 Halloween" with the contents of movies.csv being "16:40,Wonders of the World,G 20:00,Wonders of the World,G 19:00,End of the Universe,NC-17 12:45,Buffalo Bill And The Indians or Sitting Bull's History Lesson,PG 15:00,Buffalo Bill And The Indians or Sitting Bull's History Lesson,PG 19:30,Buffalo Bill And The Indians or Sitting Bull's History Lesson,PG 10:00,Adventure of Lewis and Clark,PG-13 14:30,Adventure of Lewis and Clark,PG-13 19:00,Halloween,R"

**Lesson: Movie Show Time Display**

In this lab section, you'll learn how to format and display movie show times from a CSV file using programming techniques. 

**Example Input:**

The program receives input in the form of a CSV file named `movies.csv`.

**Contents of `movies.csv`:**

```
16:40,Wonders of the World,G
20:00,Wonders of the World,G
19:00,End of the Universe,NC-17
12:45,Buffalo Bill And The Indians or Sitting Bull's History Lesson,PG
15:00,Buffalo Bill And The Indians or Sitting Bull's History Lesson,PG
19:30,Buffalo Bill And The Indians or Sitting Bull's History Lesson,PG
10:00,Adventure of Lewis and Clark,PG-13
14:30,Adventure of Lewis and Clark,PG-13
19:00,Halloween,R
```

**Program Output:**

Upon processing the CSV file, the program outputs the movie information formatted as follows:

```
Wonders of the World                                 | G     | 16:40 20:00
End of the Universe                                  | NC-17 | 19:00
Buffalo Bill And The Indians or Sitting Bull's       | PG    | 12:45 15:00 19:30
Adventure of Lewis and Clark                         | PG-13 | 10:00 14:30
Halloween                                            | R     | 19:00
```

**Description:**

- **Wonders of the World**: Rated G, showing at 16:40 and 20:00.
- **End of the Universe**: Rated NC-17, showing at 19:00.
- **Buffalo Bill And The Indians or Sitting Bull's History Lesson**: Rated PG, showing at 12:45, 15:00, and 19:30.
- **Adventure of Lewis and Clark**: Rated PG-13, showing at 10:00 and 14:30.
- **Halloween**: Rated R, showing at 19:00.

This exercise demonstrates how to extract data from a structured text format (CSV) and present it in a readable manner, emphasizing key details like movie titles, ratings, and showtimes.
Transcribed Image Text:**Lesson: Movie Show Time Display** In this lab section, you'll learn how to format and display movie show times from a CSV file using programming techniques. **Example Input:** The program receives input in the form of a CSV file named `movies.csv`. **Contents of `movies.csv`:** ``` 16:40,Wonders of the World,G 20:00,Wonders of the World,G 19:00,End of the Universe,NC-17 12:45,Buffalo Bill And The Indians or Sitting Bull's History Lesson,PG 15:00,Buffalo Bill And The Indians or Sitting Bull's History Lesson,PG 19:30,Buffalo Bill And The Indians or Sitting Bull's History Lesson,PG 10:00,Adventure of Lewis and Clark,PG-13 14:30,Adventure of Lewis and Clark,PG-13 19:00,Halloween,R ``` **Program Output:** Upon processing the CSV file, the program outputs the movie information formatted as follows: ``` Wonders of the World | G | 16:40 20:00 End of the Universe | NC-17 | 19:00 Buffalo Bill And The Indians or Sitting Bull's | PG | 12:45 15:00 19:30 Adventure of Lewis and Clark | PG-13 | 10:00 14:30 Halloween | R | 19:00 ``` **Description:** - **Wonders of the World**: Rated G, showing at 16:40 and 20:00. - **End of the Universe**: Rated NC-17, showing at 19:00. - **Buffalo Bill And The Indians or Sitting Bull's History Lesson**: Rated PG, showing at 12:45, 15:00, and 19:30. - **Adventure of Lewis and Clark**: Rated PG-13, showing at 10:00 and 14:30. - **Halloween**: Rated R, showing at 19:00. This exercise demonstrates how to extract data from a structured text format (CSV) and present it in a readable manner, emphasizing key details like movie titles, ratings, and showtimes.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education