subject

The primary of goal of this homework is to practice the mips assembly language (e. g., arithmetic operation, loop, condition, function, etc.) by programming a simple game. a computer will think a three-digit random number and you will guess and find it out. first of all, the computer randomly generates a three-digit random number, e. g. 1 2 3, 8 3 9, 0 4 5, or 7 3 2. for the sake of simplicity, each digit cannot be duplicated. for example, 1 3 3, 7 2 7, 0 0 9, or 8 8 8 are not allowed. when you guess the number, the computer will response in terms of number of strike(s) and ball(s), e. g., 2 strikes 0 ball. based on the number of strike(s) and ball(s), you will have a clue about the number what the computer is currently thinking. there is a set of rules:  strike(s): the computer will response with a strike, if your input digit and position are matched with computer's. let say, the computer has 4 2 9. if you type 0 1 8, the computer will response with "0 strike", because all your digits and their positions are not matched. if you type 5 2 7, the computer will response with "1 strike", because one of digits (i. e., 2) and its position is matched. if you type 4 3 9, the computer will response with "2 strike

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:30, Angelanova69134
Technician a says that a shop towel should never be used to clean around the flange area before replacing an automatic transmission filter. technician b says that a dimpled transmission fluid pan can be repaired. who is right
Answers: 3
image
Computers and Technology, 23.06.2019 07:30, jackie0833
Which option allows you to view slides on the full computer screen?
Answers: 1
image
Computers and Technology, 23.06.2019 07:50, madim1275
Most shops require the technician to enter a starting and ending time on the repair order to track the actual time the vehicle was in the shop and closed out by the office. this time is referred to as _ time ? a. comeback b. ro c. cycle d. lead
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, blake2001
Which of the following tasks is an audio technician most likely to perform while working on a nature documentary? (select all that apply). eliminating potentially distracting background noise adding sound effects making sure the lighting is adequate for a particular scene changing the narration to better match the mood of the documentary
Answers: 3
You know the right answer?
The primary of goal of this homework is to practice the mips assembly language (e. g., arithmetic op...

Questions in other subjects:

Konu
Chemistry, 30.04.2021 16:50
Konu
History, 30.04.2021 16:50
Konu
Mathematics, 30.04.2021 16:50