Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

International Standard Serial Number (ISSN) is identified by its eight-digit used to uniquely identify a serial publication, such as a newspaper. The ISSN is an

image text in transcribed
International Standard Serial Number (ISSN) is identified by its eight-digit used to uniquely identify a serial publication, such as a newspaper. The ISSN is an eight-digit number that is split into two four-digit numbers by a hyphen. A check digit is the final digit, which might be a 0 through 9 or an X (if check digit=10). For example, the ISSN of the journal Hearing Research, is 0378-5955 where 5 is the check digit. To find the check digit the following algorithm is used: 1. Sum of the first seven digits of ISSN multiplied by 8,7,6,5,4,3, and 2 , respectively: for example. 08+37+76+85+54+93+52=160 2. The modulus 11 of this sum is then calculated 160mod11=6. 3. This modulus value is then subtracted from 11 to give the check digit:11 6=5 4. the value of check digit can be from 0 to 9 and X. where X is representing the number 10 . Write a C program that input the first 7 digits of ISSN of format 0378-595 using scanf function as one input statement (you are not allowed to use more than one scanf) then breakdown your input and find the check digit as explained above. If the result of check digit is 10 replace it with x Here 2 example that you can check your solution //0378-5955 (check digit is 5)

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

How To Make A Database In Historical Studies

Authors: Tiago Luis Gil

1st Edition

3030782409, 978-3030782405

Students also viewed these Databases questions