Question: C++ code please, as many functions as you may. Thank you! convert_base _to_decimal: This function takes a number and its base (base meaning 2 =

C++ code please, as many functions as you may. Thank you! convert_base _to_decimal: This function takes a number and its base (base meaning 2 = binary, 6 = hexidecimal, 8 = octal). It should return that same number in decimal. EXAMPLE: convert_base_to_decimal(104,8) == 68 convert_decimal_to_other_base: this function takes a decimal number and the desired base to convert it to. It should return the number in that other base. Example: convert_decimal_to_other_base(68, 8) == 104 math_in_other_base: this function takes two numbers, their base, and a character representing the mathematical operation to perform. It should return the result in the specified base). The character can be one of +-*/% main: the main function should read from standard input the 4 parameters needed for the math_in_other_base function and print the result of calling that function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
