Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE PLEASE PLEASE... VERY URGENT ( C PROGRAMMING QUESTION ) ISBN-13 is a standard for identifying books. It uses 13 digits ISBN-13 Formatd2d2d3d4ds ded, da

image text in transcribedimage text in transcribedPLEASE PLEASE PLEASE... VERY URGENT ( C PROGRAMMING QUESTION )

ISBN-13 is a standard for identifying books. It uses 13 digits ISBN-13 Formatd2d2d3d4ds ded, da dod10d12d12d13 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 formula: 10 - (d 1 + 3d2 +d3 + 3d4 +d5 +3d6 +d7 + 3dg + d9 +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 1. ht N Write a C function named SplitAndSummarize that receives three different (2D) two dimensional arrays all of type integer. The received arrays are of the following sizes: The first array A will contain data of size 10 X 10 The second and third arrays (B and C) have the same size which is 10 X 6. Your function is supposed to split the array A into two halves, the left side half will be stored in B and the right side half will be stored in C. The extra column for B and for C will include the minimum of the values in the corresponding rows for B and Crespectively. See Below Example: Array B will be 77 4 10 94 Assume this is the input arrayA 55 1 7 1 1 77 4 10 9 4 8864 24 2 3 22 5 5 1 7 1 3 5 276 76 9 24 2 3 8 96 2 67 685 37 2. 3 3 2 76 9 8 9 5 7954 74 9 774 37 2 3 3 4 1 938 65 10 88 5 74 9 7 7 9 3698 6 5 10 10 65 8 6 10 5 8 9 10 548 9 5 4 5 4 6 10 6 4 9 10 10 6938 4 9 6 9 5 4 4 6 10 6678 4 74 496 4 7 8 8 897 And Array C will be 4 886 4 4 3 5 276 2 6 7 6 8 5 5 5 795 4 4 4 1938 1 9 36 983 6 10 5 484 10 69383 10 6678 6 8 889 77 Screenshot

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_2

Step: 3

blur-text-image_3

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

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions