Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSI Student Lab Manual Homework: Homework01. An ISBN-10 (International Standard Book Number) consists of 10 digits: d1 d2 d3d4 d5 d6 d7 d8 d9 d10.

image text in transcribed
CSI Student Lab Manual Homework: Homework01. An ISBN-10 (International Standard Book Number) consists of 10 digits: d1 d2 d3d4 d5 d6 d7 d8 d9 d10. The last digit, d10, is a checksum, which is calculated from the other nine digits using the following formula: (d1 1 + d2 2 + d3.3 + d4 * 4 +d5.5+ d6 + 6 + d7 + 7 + d8 + 8 + d9*9) % 11 If the checksum is 10, the last digit is denoted as X according to the ISBN-10 convention Write a Java program that prompts the user to enter the first 9 digits and displays the 10-digit ISBN (including leading zeros). Your program should read the input as an integer. Here are sample runs: Enter the first 9 digits of an ISBN as integer: 013601267 The ISBN-10 number is 0136012671 Enter the first 9 digits of an ISBN as integer: 013031997 The ISBN-10 number is 013031997X STUDE

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_2

Step: 3

blur-text-image_step3

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

ISBN: 3319712721, 978-3319712727

More Books

Students also viewed these Databases questions

Question

What is the orientation toward time?

Answered: 1 week ago

Question

3. How frequently do the assessments occur?

Answered: 1 week ago