Assemble a program menu.exe in MASM6.15 by making use of assembly language programming to be mounted...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Assemble a program menu.exe in MASM6.15 by making use of assembly language programming to be mounted in command window with the following specifications: A menu screen consisting of a bounded box containing 5 options with an input selection line below the box as follows: Main Menu 1. Factorial 2. Prime Numbers 3. Quadratic equation root 4. Binary 5. Exit Program Please choose an option above: (The program should only take inputs 1 to 5. Any other entry should return back to the option selection line above) Option 1: This prompts the user to enter a positive integer and should output the factorial of the integer as answer. Option 2: This prompts the user for a positive integer, say n and output the first n consecutive prime numbers. Option 3: The program asks the user to enter 3 integers a, b and c according to the equation ax2 + bx +c = 0 and should only give the positive root for x. Option 4: ger and should output the The program should ask the user to enter a positive decimal binary equivalent on screen. Option 5: This option exits the program. You should zip your executable file (menu.exe), source file (menu.asm) and object file (menu.obj) in groupX.zip file. Assemble a program menu.exe in MASM6.15 by making use of assembly language programming to be mounted in command window with the following specifications: A menu screen consisting of a bounded box containing 5 options with an input selection line below the box as follows: Main Menu 1. Factorial 2. Prime Numbers 3. Quadratic equation root 4. Binary 5. Exit Program Please choose an option above: (The program should only take inputs 1 to 5. Any other entry should return back to the option selection line above) Option 1: This prompts the user to enter a positive integer and should output the factorial of the integer as answer. Option 2: This prompts the user for a positive integer, say n and output the first n consecutive prime numbers. Option 3: The program asks the user to enter 3 integers a, b and c according to the equation ax2 + bx +c = 0 and should only give the positive root for x. Option 4: ger and should output the The program should ask the user to enter a positive decimal binary equivalent on screen. Option 5: This option exits the program. You should zip your executable file (menu.exe), source file (menu.asm) and object file (menu.obj) in groupX.zip file.
Expert Answer:
Answer rating: 100% (QA)
The programming code for the question is written in the c language using th... View the full answer
Related Book For
Principles of Communications Systems, Modulation and Noise
ISBN: 978-8126556793
7th edition
Authors: Rodger E. Ziemer, William H. Tranter
Posted Date:
Students also viewed these programming questions
-
A filter is designed with the following specifications. The anthracite and sand have density of 1700 and 2650 kg/m, respectively, and the design temperature is 10C. For a given sample (A, B, C, D, or...
-
By making use of (4.30) and (4.39), show that 0 )-1 n=-00
-
Your boss provides you with the following specifications for a new machine that she heard about at a trade show, which would reduce operating costs in your department each year. She has asked for...
-
Prepare the journal entries for 2, 4, 6, 8, 12 and 14 using the following information 6% bonds $1200000 par value payable in 5 years were issued for cash at 108, any premium is to be transferred to...
-
Define the generating functions (a) Show that Pi, j(z) = Fi, j(z) Pjj(z). (b) Prove that if state j is a transient state, then for all i, n=1
-
A particle at the origin of a Cartesian coordinate system carries a charge of \(3.89 \times 10^{-9} \mathrm{C}\). What are the magnitude and direction of the electric field at \((a)(4.00...
-
El Conquistador, Inc., finances operations with both bonds and stock. Suppose El Conquistador issued \(\$ 500,000\) of 10 -year, \(8 \%\) bonds payable under various market conditions. Match each...
-
Your division is considering two projects with the following net cash flows (in millions): a. What are the projects? NPVs assuming the WACC is 5%? 10%? 15%? b. What are the projects? IRRs at each of...
-
Questions to be answered: Why does peanut butter stick to the roof of your mouth?, What was used to make George Washington's teeth?, Who invented Lincoln Logs?, Why do camels have humps?, and What is...
-
A regional express delivery service company recently conducted a study to investigate the relationship between the cost of shipping a package (Y), the package weight (X1), and the distance shipped...
-
Cordner Corporation has two production Departments: P1 and P2 and two service departments: S1 and S2. Direct costs for each department and the proportion of service costs used by the various...
-
The following are various accounts related to the income statement and owner's equity of Lynn Company (a sole proprietorship) for the current year. Required: From the information given, prepare the...
-
Taylor Art Supplies Company sells various art supplies to local artists. The business uses a perpetual inventory system, and the cost of its inventory of art supplies at the beginning of August was...
-
In this assignment, we are going to chronicle the changes in value and ownership of one asset - a one-hectare plot of land on the corner of Cedar Springs Road and McKinney Avenue in Tamborine...
-
The Johnson Drafting Company was started on 1 March to draw blueprints for building contractors. The following transactions of the company occurred during March: Required: i Using the accounting...
-
On 31 August 20X2, the Hernandez Engineering Company's accounting records contained the following items (listed in alphabetical order): Required: Prepare a balance sheet for the Hernandez Engineering...
-
Sye Chase started and operated a small family architectural firm in Year 1. The firm was affected by two events: (1) Chase provided $23,400 of services on account, and (2) he purchased $3,600 of...
-
Two mutually exclusive investment alternatives are being considered. Alternative A requires an initial investment of $20,000 in a machine. Annual operating and maintenance costs are anticipated to be...
-
Show that (10.26) and (10.27) are Fourier transform pairs. In 2 (f (10.26) (f) xp 2? 2 -B exp In 2 h(t) = (10.27) In 2
-
For the numerical auto- and cross-correlation matrices of Example 9.9, find explicit expressions (write out an equation for each weight) for the steepest-descent tap weight adjustment algorithm...
-
Using the Paley-Wiener criterion, show that |H(f)| = exp (-f 2 ) is not a suitable amplitude response for a causal, linear time-invariant filter.
-
Explain the limitations that auditors face when they perform the attest function.
-
Indicate whether you think the following third-party groups would normally represent a (1) primary beneficiary, (2) foreseen party, or (3) foreseeable party. Give reasons for your answers. a. A...
-
Use and Dispose Company was organized to manufacture and sell inexpensive golf clubs that can be used during the golf round and then thrown away at the end of the round. In order to keep the business...
Study smarter with the SolutionInn App