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
1
Expert's answer
2012-10-31T13:07:24-0400
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.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment