Micro Program 1 (30%) : •Write an assembly program using MARIE that outputs your first name and last name. Your first name should be outputted on one line (row) and your last name should be outputted on one line (row) beneath the row of the first name. Take a screenshot of the run result. Illustrated Example Firstname Lastname
Added by Amanda A.
Close
Step 1
MARIE has a simple instruction set that includes instructions for loading, storing, adding, subtracting, input/output, and control flow. Step 2: Define the Problem You need to write a MARIE assembly program that outputs your first name and last name on separate Show more…
Show all steps
Your feedback will help us improve your experience
Aishwarya Krishnakumar and 57 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write a program that asks the user to input their first and last names. The first prompt should state: Please input your first name: The second prompt should state: Please input your last name: After accepting the inputs, your program should output the input in the form last name, first name. Hint: Remember that you can concatenate (add) two phrases by using the + symbol. Don't forget that you'll need to add a comma as well and that the comma must be followed by a space.
Akash M.
Write a program that reads a person's first and last names separated by a space, assuming the first and last names are both single words. Then the program outputs last name, comma, first name. End with newline. Example output if the input is: Maya Jones Jones, Maya
Shelayah R.
Using the MARIE computer assembly language, write a program that computes the following expression: z = a * b * c. The computer will read in the input values a, b, and c from the keyboard, and the final result (z) has to be displayed. In addition, every time an input value is read in, it must be displayed on the screen. Remember that the instruction set does not have an instruction to execute multiplication. The program must be tested in the MARIE simulator. Your assembly program should be saved as a MARIE mas file. For example: myprogramname.mas
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD