Question: The program must start at address x 3 0 0 0 . Here s how the program must behave: 1 . The program sends a

The program must start at address x3000. Heres how the program must behave: 1. The program sends a newline (
) to the console and then prints Enter First Number (4 binary digits): , which serves as a prompt to tell the user that the program is waiting for input. The prompt is a string, followed by a single space. 2. The user enters a four-digit binary number on the keyboard. As the numbers are typed on the keyboard, they should be echoed onto the console window. Any illegal input values are ignored after they are echoed and not considered part of the 4 bits. The program must check and accept only 0 or 1 as numerical characters. The program should recognize the entry as complete when it sees 4 valid binary digits. 3. The program then sends a newline to the console and then prints Enter Second Number (4 binary digits): , which serves as a prompt to tell the user that the program is waiting for a second input. The prompt is a string, followed by a single space.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!