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 x Heres how the program must behave: The program sends a newline
to the console and then prints Enter First Number 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. The user enters a fourdigit 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 bits. The program must check and accept only or as numerical characters. The program should recognize the entry as complete when it sees valid binary digits. The program then sends a newline to the console and then prints Enter Second Number 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
