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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:30
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
From excel to powerpoint, you can copy and paste a. cell ranges and charts, one at a time. b. cell ranges and charts, simultaneously. c. charts only. d. cell ranges only.
Answers: 3
question
Computers and Technology, 23.06.2019 13:00
Which of the following statements is false? a. a class can directly inherit from class object. b. if the class you're inheriting from declares instance variables as private, the inherited class can access those instance variables directly. c. a class's instance variables are normally declared private to enforce good software engineering. d. it's often much more efficient to create a class by inheriting from a similar class than to create the class by writing every line of code the new class requires.
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
question
Mathematics, 10.10.2021 15:40
question
Mathematics, 10.10.2021 15:40
question
Mathematics, 10.10.2021 15:40
question
Mathematics, 10.10.2021 15:40
question
Mathematics, 10.10.2021 15:40
Questions on the website: 13722363