The program takes a single argument as the name of the file to be read. A sample file is named (Movies.txt). The program reads this file which has labeled columns separated by commas. Every row of this text file includes information about a movie. You are asked to read every row as a string and decompose the given information (separated by commas).   If a costumer wants too see "List of the Genres" (or genre,score,year) all genres type must be show.   I need this answer in C language. Please explain nicely. Thanks.

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 program takes a single argument as the name of the file to be read. A sample file is named (Movies.txt). The program reads this file which has labeled columns separated by commas. Every row of this text file includes information about a movie. You are asked to read every row as a string and decompose the given information (separated by commas).

 

If a costumer wants too see "List of the Genres" (or genre,score,year) all genres type must be show.

 

I need this answer in C language. Please explain nicely. Thanks.

 

budget
8000000 Adventure
genre
name
score year
Stand by Me
Ferris Bueller's Day Off
8.1
1986
6000000 Comedy
7.8
1986
15000000 Action
18500000 Action
Top Gun
6.9
1986
Aliens
8.4
1986
9000000 Adventure
Flight of the Navigator
6.9
1986
6000000
Drama
Platoon
8.1
1986
25000000 Adventure
Labyrinth
7.4
1986
Blue Velvet
Pretty in Pink
The Fly
6000000
Drama
7.8
1986
9000000
Comedy
6.8
1986
15000000 Drama
7.5
1986
8800000
Adventure
Crocodile Dundee
6.5
1986
16000000 Action
Highlander
7.2
1986
6000000
Comedy
Lucas
6.8
1986
25000000 Action
Big Trouble in Little China
7.3
1986
Figure.1 Movie List Example
Transcribed Image Text:budget 8000000 Adventure genre name score year Stand by Me Ferris Bueller's Day Off 8.1 1986 6000000 Comedy 7.8 1986 15000000 Action 18500000 Action Top Gun 6.9 1986 Aliens 8.4 1986 9000000 Adventure Flight of the Navigator 6.9 1986 6000000 Drama Platoon 8.1 1986 25000000 Adventure Labyrinth 7.4 1986 Blue Velvet Pretty in Pink The Fly 6000000 Drama 7.8 1986 9000000 Comedy 6.8 1986 15000000 Drama 7.5 1986 8800000 Adventure Crocodile Dundee 6.5 1986 16000000 Action Highlander 7.2 1986 6000000 Comedy Lucas 6.8 1986 25000000 Action Big Trouble in Little China 7.3 1986 Figure.1 Movie List Example
Expert Solution
steps

Step by step

Solved in 2 steps

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