Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with a MARIE simulator I kinda understand how to load it up but if you could include pics on what inputs are

I need help with a MARIE simulator I kinda understand how to load it up but if you could include pics on what inputs are needed would be great
If it's too big I can submit a 2nd question if needed
image text in transcribed
Write a MARIE assembly language program that calculates and displays the perimeter or the area of a rectangle, given the length of each side, depending on the user's input. The user should be prompted to enter the length of each of the sides as decimal values; once these values have been read by the program, provide the user with the option to select which calculation to perform on the rectangle. This prompt is expecting the user to input an ASKll character. The application should accept a character corresponding to one of the actions: P for Perimeter or A for Area. If the ASKII letter is not A or P, the program outputs-1 to the console. The output should be the result of your calculation (or -1). For example, if the input is 4 (for one side) 5 (for the other side) A (for calculation type) Your program should print: 20 Your program should be preceded by a comment block with your name, the course and section numbers, the project name, the program purpose, along with a description of the input and a description of the output, Be sure to include appropriate comments throughout your code, choose aningful identifiers, and use indentation as shown in your textbook and in class. Your filename should be Rectangleoperations.mas. Submit your program by uploading it in the Assignment link in Blackboard. Write a MARIE assembly language program that calculates and displays the perimeter or the area of a rectangle, given the length of each side, depending on the user's input. The user should be prompted to enter the length of each of the sides as decimal values; once these values have been read by the program, provide the user with the option to select which calculation to perform on the rectangle. This prompt is expecting the user to input an ASKll character. The application should accept a character corresponding to one of the actions: P for Perimeter or A for Area. If the ASKII letter is not A or P, the program outputs-1 to the console. The output should be the result of your calculation (or -1). For example, if the input is 4 (for one side) 5 (for the other side) A (for calculation type) Your program should print: 20 Your program should be preceded by a comment block with your name, the course and section numbers, the project name, the program purpose, along with a description of the input and a description of the output, Be sure to include appropriate comments throughout your code, choose aningful identifiers, and use indentation as shown in your textbook and in class. Your filename should be Rectangleoperations.mas. Submit your program by uploading it in the Assignment link in Blackboard

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions