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
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.
Step by Step Solution
3.41 Rating (167 Votes )
There are 3 Steps involved in it
Step: 1
Little Computer 3 or LC3 is a type of computer educational programming language an assembly language which is a type of lowlevel programming language It features a relatively simple instruction set bu...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started