Programming tasks use any high-level programming-Computer Science

Programming tasks use any high-level programming-Computer Science

Tasks Use any high-level programming language you wish for the following programming exercises. Do not call built-in library functions that accomplish these tasks automatically.

(Examples are sprintf and sscanf from the Standard C library.)

1. Write a function that receives a string containing a 16-bit binary integer. The function must return the decimal integer value of the binary integer.

2. Write a function that receives a string containing a 32-bit hexadecimal integer. The function must return the decimal integer value of the hexadecimal integer.

3. Write a function that receives an integer. The function must return a string containing the binary representation of the integer.

4. Write a function that receives an integer. The function must return a string containing the hexadecimal representation of the integer.

Order from us and get better grades. We are the service you have been looking for.