Answered step by step
Verified Expert Solution
Question
1 Approved Answer
solve fast please with c program not c++ ISBN-13 is a standard for identifying books. It uses 13 digits ISBN-13 Formatd, d2d3dadsdedda dod10d11d12d13 Example 9
solve fast please with c program not c++
ISBN-13 is a standard for identifying books. It uses 13 digits ISBN-13 Formatd, d2d3dadsdedda dod10d11d12d13 Example 9 7 8 0 1 3 2 1 3 0 8 0 6 The last digit d13 is a checksum, which is calculated from the other digits using the following Your internet connection is unsta 10- (d4 +3d2+d3 +34 +d5 +3d6+d7 +33 +de +3d 10 +d11+ 3d12)%10 If the checksum is 10, replace it with 0. 1. Write a function named readString that takes only an array of character as parameter named data, reads a string of size 13 from the user, and sore it the array data. The function should ask the user to enter a proper string of until the user enters a string of size 13 2. Write a function named checksum that takes only one input parameters str of type char* (null-terminated C strings of characters) and calculates and returns the check sum from the first 12 digits 3. Write the main function that Prints your full name and Student ID Define a proper variable to store a c-string Properly call the function readString to read a 13-digit ISBN Displays valid ISBN if the digit 13 equals the checksum calculated in part2 or invalid otherwise 4. Add your name, your University ID number and section number as a comment at the beginning of this program. Sample Run: Name: Abdullah Aref ID:1122333 Please Enter a 13 Digit ISBN:9780132130806 9780132130806 Valid ISBNStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started