Question: Can anyone help me with a C programming problem? Requirements Write Use a while loop to keep repeating these steps until the user decides to

Can anyone help me with a C programming problem?

Can anyone help me with a C programming problem? Requirements Write Usea while loop to keep repeating these steps until the user decides

Requirements Write Use a while loop to keep repeating these steps until the user decides to quit: 1. Invoke a function (that you must write) that prompts the user to enter the first 12 digits of the a C program to do the following: ISBN-13. You may assume the user will enter just a pure number with no dashes, spaces, or letters. .Use the fgets function to store the user's entered ISBN as a string . Use the strtoll function to convert the string to an integer variable. Hint: Is int, long int, or long long int the most appropriate data type? Special case: If the value is a zero (0), then exit the program. If the ISBN is too short (fewer than 12 digits) or too long (greater than 12 digits), then display an error message and let the user try again. Invoke a function (that you must write) which uses either a for or while loop to deconstruct the integer ISBN and store its digits in a numeric array. Each element of the contain one digit from the ISBN 2. array should Do not use any math library functions. This task can be done by utilizing just a loop and appropriate arithmetic operators. Hint: The modulus and division operators may help. Example: 978007352960: array 10]9, array[1] 7, , array[10]9, array0 3. Use a loop to display the contents of the digit array. Print periods to separate the digits. 4. Invoke a function (that you must write) which determines the group code of the ISBN If the group code is 0, 1, 2, 3, 4, 5, or 7, then display both the code and its associated language/country (e.g.. " - English"). If it is not one of the listed values, then simply display "Other" If the group code is 0, then invoke a function (that you must write) that determines the publisher code and the title code and then displays them. For any other group code, you do not 5. have to do this. Hint: Examine the digits and use the Wikipedia tables to figure out the valid ranges. Invoke a function (that you must write) which calculates the check digit using the 12 digits of the entered ISBN value and then displays it. .Do not write out the entire equation. You must use a loop to compute this! 6. Notes 1. Remember, you are writing separate functions to make the program modular 2. Use function prototypes so you do not have to worry about the order of function definitions. 3. Send data to functions by passing the needed arguments. Do not use global variables for this. 4. Wherever appropriate, use macro definitions or const variables for constants. Save your program using this filename: hwa.c 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!