1. Modify the code in Program 4 to let the program change any…

Question Answered step-by-step 1. Modify the code in Program 4 to let the program change any… 1. Modify the code in Program 4 to let the program change any decimal number to its equivalent binary number. 2. Change the code in Program 4 to let the program change any decimal number to its equivalent octal number.Image transcription textProgram 4 A decimal to hexadecimal converter program The application program to change a decimal numberto its * hazadacinal equivalent. #include “stack.cpp” int main ( ) 19 # Instantiation of a Stack object10 Stack stack; 11 #/ Instantiation of two string objects and two integer variables 12 s… Show more… Show more  Computer Science Engineering & Technology C++ Programming CFRM MISC Share QuestionEmailCopy link Comments (0)