Question: o Write a C++ program that gets an integer binary number as parameter and displays its decimal equivalent. o Your function should first check if

o Write a C++ program that gets an integer binary number as parameter and displays its decimal equivalent. o Your function should first check if the input is a valid binary number (Hint: Remember that binary numbers consists of only 1s and Os.). If it 1s not, give a warning message and return from the function immediately.) o If the parameter is binary, function should convert the binary number to decimal and display the result with an appropriate message o You are allowed to use the mathematical librarv
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
