Marie program to implement one round of rock paper scissors

Assignment Help Assembly Language
Reference no: EM132527565

Write a MARIE program to implement one round of rock paper scissors game. Your program should represent the three moves ‘rock', ‘paper' and ‘scissors' with numbers 1, 2 and 3 respectively. When the program is run, there should be two input prompts, one after the other, to ask for player 1's and player 2's moves (a number 1, 2 or 3). Then the program would compare both numbers and apply the following rules to work out the winner.

• Paper beats rock, scissors beat paper and rock beats scissors.
• If both moves are same, round is drawn.

Depending on the results of comparison there will be one of the three outputs: 'P1 Won' or 'P2 Won' or 'Draw'. Once a result is obtained, the program would take a third input from user to ask if they want to repeat with another round. User should enter a number 1 to indicate 'yes' and that should repeat the whole process. Any input other than 1 should be treated as 'no' and quit the program.

Use ‘decimal' mode for inputs and ‘Unicode' mode for outputs. To display text on output, you need to print it character by character using their ASCII codes. Insert a line break (ASCII code 10) before starting next round. Assume that the user will always provide valid numbers as input - do not worry about dealing with invalid input data. Also write comments within your program so that a reader can understand it easily.

Attachment:- MARIE program.rar

Reference no: EM132527565

Questions Cloud

What is the present value of trust fund : What is the present value of your trust fund if it promises to pay you 10,000 on your 30th birthday (9 years from today ) and earns 8% compounded annually
Make a summary of the variances : Make a summary of the variances. Does the unfavorable overhead volume variance suggest that overhead costs are out of control?
How much overhead would allocate to a job : Using total direct labour cost to calculate a predetermine overhead rate, how much overhead would you allocate to a job which uses 300 direct labour hours?
Determine the amounts of the components of pension expense : The company's funding policy requires a contribution to the pension trustee amounting to $145.000. Determine the amounts of the components of pension expense
Marie program to implement one round of rock paper scissors : Write a MARIE program to implement one round of rock paper scissors game. Your program should represent the three moves ‘rock', ‘paper' and ‘scissors
What is the amount of each annuity payment : What is the amount of each annuity payment for a 5 year 10000 loan if the interest rate is 10 percent assume the first payment will be made a year from today
Substitute numbers into formulas in separate steps : Your son is about to start kindergarten in a private school. Currently, the tuition is $12,000 per year, payable at the start of the school year (t=0).
Determine the quantity variance and the cost variance : Determine the quantity variance. Ruby Company produces a chair that requires 7 yards of material per unit. The standard price of one yard
What was the value of his account when he left the country : Mark deposited X amount into an account that paid 8% compounded monthly. What was the value of his account when he left the country

Reviews

Write a Review

Assembly Language Questions & Answers

  Create a assembly language subroutine

Create a assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n words and array C containing n long words

  Write a function in linux assembly

Write a function in Linux assembly

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Design a simple digital clock

Design a simple digital clock

  Write an assembly program

Prepare an Assembly program that reads in a number of cents.

  Write an assembly language program

Write an assembly language program for encrypting alphabates of a string

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  Write assembly program-find right admission price to movie

Write the Assembly program to find correct admission price to movie. Price of admission to a movie is $7 for kids (under 12) and $9 for adults.

  Create simple 8-bit alu using add-subtract-shift functions

Create a simple 8-bit ALU. Requirements:The eight functions that you will implement are: add, subtract, and, or, shift left logical, less than, shift right logical.

  Write assembly program print binary representation-integers

Write the assembly program called hw6_ex1, stored in file hw6_ex1.asm. This program must prompt user to enter signed 32-bit integer. Program must print out binary representation of the integer.

  Allot op-codes and add microcode to microprogram

Allot op-codes and add microcode to microprogram of Mic-1 to implement following instructions which are then included with IJVM instruction set.

  Write mips assembly program to read two non-negative numbers

Write MIPS assembly program to repeatedly read two non-negative integers and print integer product and quotient without using multiplication and division instructions.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd