I need it in 3 hours

profileabhay15
program_using_linked_lists.docx

Linked list program using c

Expand the inventory program you wrote for assignment 1 to use a linked list instead of an array. Your program should open a text file, read in the information, and store it in your linked list implementation. It should also print this information once the program has finished running. Include a screen shot of the compiled running program.

The following structures should be used to store information:

typedef struct date{

int day;

int month;

int year; }

Date;

typedef struct book{

char title[100];

char author[100];

Date published;

char publisher[100];

float price;

char isbn[100];

int pages;

int copies;

}

Book;

typedef struct node{

Book book;

struct node *next;

}

Node;

** Do not change names, as it will interfere with grading. The file your program needs to read will be structured as follows:

Title (string)

Author (string)

Published (int int int)

Publisher (string)

Price (float)

ISBN (string)

Pages (int)

Copies(int)

For instance;

Expand the inventory program you wrote for assignment 1 to use a linked list instead of an array. Your program should still open the file, read in the information, and store it in your linked list implementation. It should also print this information once the program has finished running.

The following structures should be used to store information:

typedef struct date{

int day;

int month;

int year; }

Date;

typedef struct book{

char title[100];

char author[100];

Date published;

char publisher[100];

float price;

char isbn[100];

int pages;

int copies;

}

Book;

typedef struct node{

Book book;

struct node *next;

}

Node;

** Do not change names, as it will interfere with grading. The file your program needs to read will be structured as follows:

Title (string)

Author (string)

Published (int int int)

Publisher (string)

Price (float)

ISBN (string)

Pages (int)

Copies(int)