Question: c++ 2. Write a program that prompts the user to enter a four binary numbers as a string and displays its corresponding decimal value. Here

c++
2. Write a program that prompts the user to enter a four binary numbers as a string and displays its corresponding decimal value. Here are sample runs: Coutput> Enter a four-digit binary string: 1111
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
