Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

An International Standard Book Number (ISBN) is a code of 10characters separated

ID: 3608529 • Letter: A

Question

An International Standard Book Number (ISBN) is a code of 10characters separated by dashes such as 0-670-82162-4. An ISBNconsists of four parts: a group code, a publisher code, a code thatuniquely identifies the book among the publisher’s offerings,and a check character. For the ISBN 0-670-82162-4, the group codeis 0, which identifies the book as one from an English speakingcountry. The publisher code 670 identifies the book as a VikingPress publication. The code 82162 uniquely identifies the bookamong the Viking Press publications (Homer: The Odyssey,translated by Robert Fagles). The check character is computed asfollows:

For example, in case of the above ISBN number, the sum is

0 + 2 * 6 + 3 * 7 + 4 * 0 + 5 * 8 + 6 * 2 + 7 * 1 + 8 * 6 +9 * 2 = 158

The remainder when 158 is divided by 11 is 4, the last characterin the ISBN

Implement a class to represent an ISBN. Following good objectoriented programming practices, keep the data members private.Accessor functions should be declared to set and get the privatedata. You can use either c-strings or objects of string class tostore the ISBN as a string. An ISBN object should be able to checkits own validity! Write a test program that illustrates the use ofyour ISBN class.

Explanation / Answer

please rate - thanks #include #include using namespace std; class ISBN {public: void separate(string); char combine(); private:    int ch[9]; }; int main() {ISBN num; string input; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote