Computers and Technology

IN PYTHON PLEASE HELP. 16.6 LAB: Movie show time display
Write a program that reads movie data from a CSV (comma separated values) file and output the data in a formatted table. The program first reads the name of the CSV file from the user. The program then reads the CSV file and outputs the contents according to the following requirements:

Each row contains the title, rating, and all showtimes of a unique movie.
A space is placed before and after each vertical separator ('|') in each row.
Column 1 displays the movie titles and is left justified with a minimum of 44 characters.
If the movie title has more than 44 characters, output the first 44 characters only.
Column 2 displays the movie ratings and is right justified with a minimum of 5 characters.
Column 3 displays all the showtimes of the same movie, separated by a space.
Each row of the CSV file contains the showtime, title, and rating of a movie. Assume data of the same movie are grouped in consecutive rows.

Ex: If the input of the program is:

movies. csv
and the contents of movies. csv are:

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
the output of the program is:

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 | R | 19:00

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:00, mariahrpoulin9630
Which part of the cpu accepts data?
Answers: 1
image
Computers and Technology, 23.06.2019 10:30, tommyaberman
Would a ps4 wired controller work on an xbox one
Answers: 1
image
Computers and Technology, 23.06.2019 15:30, PlzNoToxicBan
The song about casey jones a railroad engineer who gives his life on the job would most likely gall under the folk song category of? a-work song b-nonsense song c-religious song d-ballad
Answers: 1
image
Computers and Technology, 24.06.2019 18:20, bm42400
The following if statement contains a logic error, not a syntax error. rewrite it so that it is correct. assume the variable age already exists and holds a valid number. if (age == 18 & & age == 19) {
Answers: 1
Do you know the correct answer?
IN PYTHON PLEASE HELP. 16.6 LAB: Movie show time display
Write a program that reads movie da...

Questions in other subjects:

Konu
Mathematics, 03.05.2021 02:40
Konu
English, 03.05.2021 02:40
Konu
Biology, 03.05.2021 02:40
Konu
Mathematics, 03.05.2021 02:40