Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSC 143 Book Cataloging System Write a program to manage a Book Catalog. The catalog would contain a collection of books, with following fields of

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

CSC 143

Book Cataloging System Write a program to manage a Book Catalog. The catalog would contain a collection of books, with following fields of information: book code (unique for each book, must be valid see ISBN validation rules in this assignment for more info), author's last name, author's first name, book title, year of publication and price. The book catalog should use a file for storing books The information in the file uses tabs to separate each of the field of a book, with one book per line. Refer to sample file: booklist.txt for more details. Usage Requirements: 1. At the start, the program should load the catalog from file (Bookstxt from current directory), if it doesn't exist, create a new catalog. 2. The program should allow the user to add a new book to the catalog. The program should ask for the required information and then add the book to the catalog, only if same book code doesn't already exist in the catalog and if the book is a valid. Book is considered valid, if the book code is valid, name and title are valid (name can't start with numbers, name/title can't be empty, price is not negative or zero, year cannot be greater than 2013) Book Cataloging System Write a program to manage a Book Catalog. The catalog would contain a collection of books, with following fields of information: book code (unique for each book, must be valid see ISBN validation rules in this assignment for more info), author's last name, author's first name, book title, year of publication and price. The book catalog should use a file for storing books The information in the file uses tabs to separate each of the field of a book, with one book per line. Refer to sample file: booklist.txt for more details. Usage Requirements: 1. At the start, the program should load the catalog from file (Bookstxt from current directory), if it doesn't exist, create a new catalog. 2. The program should allow the user to add a new book to the catalog. The program should ask for the required information and then add the book to the catalog, only if same book code doesn't already exist in the catalog and if the book is a valid. Book is considered valid, if the book code is valid, name and title are valid (name can't start with numbers, name/title can't be empty, price is not negative or zero, year cannot be greater than 2013)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions