1. Defining a hexadecimal number as in Problem 67, write the function int hexToDec(const int hexNum[]) to convert a four-digit hexadecimal number to a nonnegative decimal integer. Do not output the...

1. Defining a hexadecimal number as in Problem 67, write the function



int hexToDec(const int hexNum[])


to convert a four-digit hexadecimal number to a nonnegative decimal integer. Do not output


the decimal integer in the function. Test your function with interactive input.



2.
Defining a hexadecimal number as in Problem 67, write the function


void decToHex(int hexNum[], int decNum)


to convert a nonnegative decimal integer to a four-digit hexadecimal number. Do not output


the hexadecimal number in the function. Test your function with interactive input.










May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here