Programming tasks use any high-level programming language


rogramming 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.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Programming tasks use any high-level programming language
Reference No:- TGS01121630

Expected delivery within 24 Hours