hello there ,, ^_^

i need help with this,,, i can't get it ,, i don't know y ,, maybe because i can't create a function can convert from something to other ,, ^_^

i really need your help with this one ,, ^_^

btw i am new here and kindda like it ,, ^_^

Write a program that able to convert Hex number to decimal and vice versa. The program should
have two functions. The first function called hexToDec takes one argument as string and returns
an integer. The second function called decToHex takes also one argument as integer and returns
a string. The program should offer the user two options:
1. To convert Hex to Dec.
2. To convert Dec to Hex.
Example:
Please choose one of the following:
1- Convert Hex to Dec.
2- Convert Dec to Hex.
1
Please enter a Hex number:
2A
2A = 42 in Decimal.
====================================
Please choose one of the following:
1- Convert Hex to Dec.
2- Convert Dec to Hex.
2
Please enter a Dec number:
2748
2748 = ABC in Hex.
Assume that all Letters are in capital letters so you do not need to worry about small letters too.