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"
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"
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"
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"
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.
Process by which instructions are given to a computer, software program, or application using code.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.