Answer to Question #17603 in C++ for Ridoan Khan Anik
Number Format Conversion You are working in a system which supports multiple number formats. In this problem you are given as input a number (base2, base10 or base16) and convert it into either base2 or base10. So in every line of the input there are three inputs. First input is your number, the second one is the type of the given number and the remaining one is the intended type in which you want to convert the given input. Input First input is the number which is a string and maximum size will be nine characters. The second one is the input type and the third one is the intended type. For the ease consider the following for input and intended type: Base2: 0 Base10: 1 Base16: 2 Output Display the result in the intended format Sample Input 10101 0 1 107 1 2 578EA 2 0 AE 2 1 Sample Output 21 6B 1010111100011101010 174 *NB: The decimal value of the output will not greater than 231
Unfortunately, your question requires a lot of work and cannot be done for free.
Submit it with all requirements as an assignment to our control panel and we'll assist you.
No comments. Be first!