Question: Firstly, the program should prompt the user to enter a binary number. When the user enters a binary number, the program should say Running the
Firstly, the program should prompt the user to enter a binary number. When the user enters a binary number, the program should say "Running the sum" and should return the sum in binary format. However, this should happen each time a new binary number is written in the terminal. So in general, the program should add all the previous binary values indefinitely until the program is stopped.

import java.util.Scanner; public class PartA Continuously reads binary numbers from the user and prints the running sum in binary. An input of 101, 11, 1010, 11 will yield outputs of 101, 1000, 10010, and 10101 @param args */ public static void main(String[] args) { /* fill it in here */ }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
