Program Description Write and test a MASM program to perform the following tasks: Display your name and program...

70.2K

Verified Solution

Question

Programming

Program Description

Write and test a MASM program to perform the followingtasks:

  1. Display your name and program title on the output screen.
  2. Display instructions for the user.
  3. Prompt the user to enter three numbers (A, B, C) in descendingorder.
  4. Calculate and display the sum and differences: (A+B, A-B, A+C,A-C, B+C, B-C, A+B+C).
  5. Display a closing message.

Program Requirements

  1. The program must be fully documented and laidout according to the CS271 Style Guide. This includes a completeheader block for identification, description, etc., and a commentoutline to explain each section of code.
  2. The main procedure must be divided intological sections:
    1. introduction
    2. get the data
    3. calculate the required values
    4. display the results
    5. say goodbye
  3. The results of calculations must be stored innamed variables before being displayed.

Answer & Explanation Solved by verified expert
3.9 Ratings (519 Votes)
Program ScreenshotSample output1Sample output2Code to copy include the irvine libraryINCLUDE Irvine32incData section declare all the variablesdata myName BYTE Mila Chung 0 programTitle BYTE Programming Assignment1 0 instructions BYTE Enter 2 numbers andIll show you the sum difference product quotient andremainder 0 askNum1 BYTE First Number 0 askNum2 BYTE Second Number 0 number1 DWORD integer entered by user number2 DWORD secondinteger entered by user goodByeMessage BYTE ImpressedBye0 equalsString BYTE 0 sum DWORD sumString BYTE 0 difference DWORD differenceString BYTE 0 product DWORD    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students