I was working for a long time with this.
The isbn program, which I am working on my own....this is how far i gotten.
its more or less a progress check to prove i am working on it, i know nietod and others may thought i was handing in mflams in...but his is way beyond my course of this semester....
i am stuck as the checksum is incorrect...and there is a slight problem, if the reaminder is 10, the checksum is X not 10. so i need help with that and getting this to work now.
thanks
#include <iostream.h>
#include <iomanip.h>
int main()
{
char isbn[10];
char input;
int i;
cout << "Input ISBN number: ";
for (i = 0; i < 10; i++)
{
cin >> input;
int(char(input));
isbn[i] = input;
}
cout << endl;
int sum, digit, correct;
for (i = 0; i < 9; i++)
sum += (i+1) * digit;
correct = sum % 11;
if (isbn[9] == correct)
cout << "Correct!\n";
else
cout << "correct checksum is: " << correct;
cout << endl << endl;
return 0;
}