Can AnyOne Here Expert Please Help Me WRITE this c++ program...
Thanx you...
Question..
Write a program that will take a positive integer number and display as binary coded decimal (bcd) number. Assume that we are working 2 bytes (i.e. 16bits). 4 bits represent each decimal digit and the input number is not exceeding 9999. E.g. if the input number is 375 the display should read as 0000 0011 0111 0101. The program should use two programmer-defined functions. One, called separate_digits, that takes the input value and separates the digits. Another function, called bcd, is called to convert the decimal digits to binary. The bcd number is to be displayed by the main function.................
Thanx Again



LinkBack URL
About LinkBacks


