Write the MARIE program that prints the first two letters of your name on the screen...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write the MARIE program that prints the first two letters of your name on the screen (50 Points). Q2-Shifting the value Write a program with MARIA that allows the user to enter integers X and Y, showing the result of shifting X number to the left by Y bits. (50 Points). Hint: Shifting left once is equivalent to value multiplying by two. In MARIE, you can do this by successive addition. You know that the division and shift commands are not available in MARIE. Write the MARIE program that prints the first two letters of your name on the screen (50 Points). Q2-Shifting the value Write a program with MARIA that allows the user to enter integers X and Y, showing the result of shifting X number to the left by Y bits. (50 Points). Hint: Shifting left once is equivalent to value multiplying by two. In MARIE, you can do this by successive addition. You know that the division and shift commands are not available in MARIE.
Expert Answer:
Answer rating: 100% (QA)
here are the MARIE assembly programs for both tasks Printing the first two letters of your name ORG ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Calculate the amount of accrued interest at the time the bond is sold. ( 2pts ) a )_______( paid or received ), b )_______ AIn , when the 5/15/42 A$ T-bond is liquidated. AutoSave OFF Home Insert...
-
2. In January 2016, the Free Cancer Foundation accepted an endowment of $500,000, the income from which is restricted to promoting research related to recovery from cancer. All gains, whether...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Barnaby is a farmer who receives two-thirds of his total income from the sale of oranges. After two consecutive years of early frosts that destroyed his orange harvest, Barnaby found himself deep in...
-
What is the exergy of air at 300 C and 600 kPa if the dead state is 20 C and 101 kPa? a) Assume constant specific heats and b) Use Table F-1.
-
Selective migration explains why Tim, who is an artist, decided to move to an area of the United States characterized by a population which is innovative and inspired temperamental, uninhibited...
-
Which of the following expenses are not added back to net income when using the indirect method to prepare a statement of cash flows? a. Amortization expense b. Depletion expense c. Interest expense...
-
The 2011 financial statements for The Walt Disney Company can be found on the Internet. 1. Using the financial statements and information contained in the notes, determine how much income tax expense...
-
Find an example of an app that uses multiple fragments and combines them into one single activity. In your post, Identify the app by providing the name and a URL to the app. Discuss how multiple...
-
Suppose you have a list of blood platelet counts from 500 patients in a hospital. Which of the following is most helpful in understanding the distribution of those values: frequency table, pie chart,...
-
It turns out that 2699 is prime and 2698=2.1971. Suppose we know that 11134 #1 mod 2699, 1142 #1 mod 2699, and 1181 mod 2699. Please prove, without computing any further powers 11, that 11 is a...
-
a) Draw two free body diagrams (FBDs) of the piston: one at the initial state with the spring in its equilibrium position, and one at some later state when the gas has expanded to some larger volume....
-
A magnetic gun is made as shown in the Figure. Two cylindrical conductors of diameter a (rails) and separated a distance d between centers are shorted by a conducting projectile that is free to move...
-
A tennis ball (m = 56 g, d = 6.54 cm and cd = 0.6) falls vertically from a 1 km tower (with an initial "zero" speed). 1. What time does the ball take to touch the ground if drag is neglected? 2. What...
-
How does your organization integrate data analytics and machine learning to optimize customer acquisition and retention in a competitive market ?
-
Finished goods inventory, ending The following data is provided for Garcon Company and Pepper Company for the year ended December 31. Finished goods inventory, beginning Work in process inventory,...
-
16. Using the limit as h goes to 0, find the slope of each of the following: [4 Marks, 5 Marks] a) f(x) = -6x + 7x-3 at x = -2 b) f(x) = x-8 2x+5 at x = 1
-
d. The characteristic equation of a control system is given by s+2s+8s+12s+20s+16+16=0. Determine the number of the roots of the equation which lie on the imaginary axis of s-plane
-
A try block includes all of the following elements except ____________. A. The keyword try B. The keyword catch C. Curly braces D. Statements that might cause exceptions
-
A class named Building has a public, nonstatic method named getFloors(). If School is a child class of Building, and modelHigh is an object of type School, which of the following statements is valid?...
-
Which of the following displays Error when a student ID is less than 1000 or more than 9999? a. if(stuId < 1000) if(stuId > 9999) System.out.println("Error"); b. if(stuId < 1000 && stuId > 9999)...
-
What does an increase in the balance of accounts receivable indicate?
-
How are the cash flows resulting from a company's investing activities identified?
-
What is the starting point for calculating the cash flow from operating activities?
Study smarter with the SolutionInn App