Question: Step by step code in Matlab format please. Programming Assignment 5 CSCI 251, Spring 2017 An ISBN (International Standard Book Number consists of 10 digits:

 Step by step code in Matlab format please. Programming Assignment 5
CSCI 251, Spring 2017 An ISBN (International Standard Book Number consists of
Step by step code in Matlab format please.

Programming Assignment 5 CSCI 251, Spring 2017 An ISBN (International Standard Book Number consists of 10 digits: d, de da du ds de dh dodg dto. The last digit doo is a checksum, which is calculated from the other nine digits using the following formula: dro (dr.1 dia 2 d, 3 de 4 ds.5 de 6 dr.7 de 8 do 9) mod 11 where mod is short for modulus. lf the checksum is 10, then the last digit is denoted X, according to the ISBN convention (recall that X is the Roman Numeral for 10) Begin by downloading the file isbn-9Numbers.txt from Blackboard. Open the file and note that there are a thousand 9-digit isbn numbers. Insert your student ID number as the first entry and the last entry to this file. If your studentID only has 8 digits then begin it with the number 9 For program 5, write a script that reads each line from isbn-9Numberstoot, determines the 10 h number, and outputs to both the monitor and a file named isbn-10Numbers.txt with the isbn-10 number in the correct format. That is, a dash after the first, third, and ninth numbers. So that you may troubleshoot your code, a second file, isbn- 9SevenNumbers.Dxt has been provided (the first 7 numbers in the original file). DO NOT TURN IN isbn-9SevenNumbers.txt. Considerations 1. You must include your student ID number as the first and last entry of the isbn-9Numbers.txt file 2. For each line of isbn-9Numbers.bxt, read in your input as a string, using a for-oop to step through each character. Before you may use each 'digit' in the isbn-10 formula above, you must convert the character to a number using the str2num() command 3. To concatenate multiple values of a character string, use the (colon). That is, if your variable name is isbn10, then isbn10 lisbn(1). sbn(2:3)]; would create the first part of your isbn-10 number. 4, When outputting, be sure to include a newline such that each i number is on its own line Name your file ISBN.m. Include header comments and be sure to include the Honor Code statement. On Blackboard, turn in ISBN m, isbn 9Numbers,txt, and isbn 10Numbers txt Do not forget to comment your code

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!