Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

CS101 Binary Arithmetic

Requirement

In this Assignment, you should write a program that allows the user to perform simple arithmetic in binary. Upon starting, the program should tell the user that it is a binary math program, along with brief instructions on how to use the program. The program should then enter a loop, where it gives a prompt, such as “input>”. Upon receiving input from the user, the program should process it, report the output result (or error), and loop back to the prompt. This should continue until the user gives the keyphrase to exit the program (keyphrase is your choice, good choices are “quit”, “end”, “exit”, etc.). For example:

1   Input> 101+1100

2   10001

3   Input> 111001-1010

4   101111