Question: Write a Python program to implement the following: A . . Design a class called ISBN to represent an International Standard Book Number or ISBN

Write a Python program to implement the following:
A.. Design a class called ISBN to represent an International Standard Book Number or
ISBN for short. The ISBN consists of 1010 digits divided into 44 parts.
For example, the ISBN 09418313960941831396 represents the following information:
The first part: The first digit "0""0" signifies the book is from an English-speaking country.
The second part: "941831""941831" identifies the publisher.
The third part: "39""39" is the title number for the book.
The fourth part: "6""6" is a check digit to indicate that the sum of the ISBN digits is 10.10.
The class should have a constructor and methods to set and get the ISBN as a string.
B.. Design a Book class that represents relevant information about a book, including the
book's title, author, publisher, city and date of publication, and price.
The class should also include the field ISBN isbnNum; where ISBN is the class defined
above.
This class should include a constructor and the following methods:
- setBookISBN: to set the ISBN for the book.
- getAuthor: to return the author of the book.
- setAuthor: to set the author of the book.
- getBookISBN: to get the ISBN of the book.
- printDetails: to print the information of a book in the following form:
Book Title: Object First with Python
Book Author: AuthorAA
Publisher: Prentice Hall
ISBN: 09418313960941831396 python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Below is a Python program implementing the described classes class ISBN def initself isbnstr selfisb... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!