Try e-gunparts.com, gun shows, gun shops, want ads
The related link below is a free WWI information site providing a sidebar of the alphabet. Each letter is linked to a web page leading unto various people/things timing back to WWI.A is for alliesB is for big stick DipolmacyC is for CubaD is for deathE is forF is for the Fourteen pointsG is for Guam or GermanyH is for Havana HarborI is forJ is forK is forL is forM is for Monroe DoctrineN is for NationalismO is for the ottoman empireP is for Panama canalQ is forR is for Roosevelt corollaryS is forT is for Theodore rosseveltU is for the U.s.s MaineV is forW is for world powerX is for xrayY is for Yellow journalismZ is for Zimmerman TelegramTHAT'S THE ABC BOOK :)
First of all we will talk about how binary number are converted back into decimal representation and later we will have program.Here is the formula of this transformation:Binary number: a3a2a1a0Decimal number a x 23 + a x 22 + a x 21 + a x 20Example:Binary: 1101Decimal: 1 x 23 + 1 x 22 + 0 x 21 + 1 x 20 = 8 + 4 + 0 + 1 = 13And here we have our program:#include #include #include int main() {char str[100];int ind;int sum = 0;printf("Please enter binary number: ");scanf("%s", str);for(ind = 0; ind < strlen(str); ind++) {sum += (str[ind] - 0x30) * pow(2, strlen(str) - ind - 1);}printf("Number in decimal would be %d\n", sum);return 0;}Testing:Please enter binary number: 1101Number in decimal would be 13Please enter binary number: 10000001Number in decimal would be 129Please enter binary number: 11111111Number in decimal would be 255Please enter binary number: 0Number in decimal would be 0