Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MASM Assembly Language: Write and test a MASM program to perform the following tasks: -Display your name and program title on the output screen. -Display

MASM Assembly Language: Write and test a MASM program to perform the following tasks:

-Display your name and program title on the output screen.

-Display instructions for the user.

-Prompt the user to enter two numbers.

-Calculate the sum, difference, product, (integer) quotient and remainder of the numbers.

-Display a terminating message.

Requirements of the program: The main procedure must be divided into sections:

introduction

get the data

calculate the required values

display the results

say goodbye

Repeat until the user chooses to quit.

Validate the second number to be less than the first.

Calculate and display the quotient as a floating-point number, rounded to the nearest .001.

**NOTE: The results of calculations must be stored in named variables before being displayed.

The program must be fully documented. This includes a complete header block for identification,

description, etc., and a comment outline to explain each section of code.

Example execution #1 (user input is in italics):

Enter 2 numbers, and I'll show you the sum, difference, product, quotient, and remainder. 

First number: 37

Second number: 5

37 + 5 = 42 37 - 5 = 32 37 x 5 = 185 37  5 = 7 remainder 2 
Impressed? Bye! 

Example 2: Program verifies second number less than first.

Enter 2 numbers, and I'll show you the sum, difference, product, quotient, and remainder. 

First number: 7

Second number: 9

The second number must be less than the first! Impressed? Bye! 

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

Students also viewed these Databases questions

Question

Understand the importance of reliability and validity

Answered: 1 week ago