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, 21.06.2019 18:20
Write the pseudocode for the following: a function called fahrenheittocelsius that accepts a real fahrenheit temperature, performs the conversion, and returns the real celsius temperature. a function called celsiustofahrenheit that accepts a real celsius temperature, performs the conversion, and returns the real fahrenheit temperature. a main module that asks user to enter a fahrenheit temperature, calls the fahrenheittocelsius function, and displays the celsius temperature with a user-friendly message. it then asks the user to enter a celsius temperature, calls the celsiustofahrenheit function, and displays the fahrenheit temperature with a user-friendly message.
Answers: 1
question
Computers and Technology, 22.06.2019 07:30
Events and conditions that happen within an organization that are somewhat easier to deal with when responding to change are called
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 2
question
Computers and Technology, 24.06.2019 16:50
7.23 main lab 7 - online shopping cart background this main lab extends the earlier prep lab "online shopping cart part 1". (you should save this as a separate project from the earlier prep lab). you will create an on-line shopping cart like you might use for your on-line purchases. the goal is to become comfortable with setting up classes and using objects. requirements this lab can be done individually or as pair programming. expanded itemtopurchase class (15 points) extend the itemtopurchase class as follows. we will not do unit testing in this lab so we will not be giving you the names of the member functions. create good ones on your own. create a parameterized constructor to assign item name, item description, item price, and item quantity (default values of "none" for name and description, and 0 for price and quantity). additional public member functions set an item description get an item description print the cost of an item - outputs the item name followed by the quantity, price, and subtotal (see example) print the description of an item - outputs the item name and description (see example) additional private data members a string for the description of the item. example output of the function which prints the cost of an item: bottled water 10 @ $1.50 = $15.00 example output of the function which prints the item description:
Answers: 1
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, 14.04.2020 04:07
question
Chemistry, 14.04.2020 04:07
question
Mathematics, 14.04.2020 04:07
question
Biology, 14.04.2020 04:07
question
Mathematics, 14.04.2020 04:07
question
Biology, 14.04.2020 04:07
Questions on the website: 13722361