This programming project will help you to apply concepts learned in programming the LC-3 machine; to write
Question:
This programming project will help you to apply concepts learned in programming the LC-3 machine; to write a program using the LC-3 assembly language with I/O.
For this programming project, you will design and implement a program that plays the Hi-Lo guessing game with numbers between 0 and 9, inclusive. The program assumes that there are two players. The first player chooses the number to be guessed and the second player will repeatedly guess what that chosen number is, until the he/she guesses the number correctly or the number of incorrect guesses exceeds 5
Your program should prompt player one for the number (NUM) and then repeatedly prompt the second player to guess the number (GUESS). Input should be retrieved from the keyboard. On each guess, report to the user that he or she is correct or that the guess is high or low. Count the number of guesses and report the value when the user guesses correctly.
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch