Write your program to accommodate spaces and strings longer


Your program should open the file, read in the information, and store it in an array of struct book structures. It should also print this information once the program has finished running.

The following structure should be used to store information:

struct book
{
char title[100];
char author[100];
char publisher[100];
float price;
char isbn[100];
int pages;
int copies;
};

** 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)
Publisher (string)
Price (float)
ISBN (string)
Pages (int)
Copies(int)

We will make things easier and let you assume strings will not contain spaces nor will they exceed 100 characters. Feel free to challenge yourself and write your program to accommodate spaces and strings longer than 100 characters. You may also assume each line ends with a newline character.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write your program to accommodate spaces and strings longer
Reference No:- TGS01275231

Now Priced at $35 (50% Discount)

Recommended (99%)

Rated (4.3/5)