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...
-
For each of the following situations, draw a diagram containing three of Isabella's indifference curves. a. For Isabella, cars and tires are perfect complements, but in a ratio of 1:4; that is, for...
-
Below are selected T-accounts for the RunnerTech Company. Below are selected T-accounts for the RunnerTech Company. Required: Complete the following journal entries and answer the following...
-
Figure 20.27 shows the flowsheet for a process for the production of gasoline (mainly octane) from an olefins feed (propane, propene, and butene). The feed to the process is heated in E-100, and then...
-
At December 31, balances in Manufacturing Overhead are: Shimeca Companydebit $1,200, Garcia Companycredit $900. Prepare the adjusting entry for each company at December 31, assuming the adjustment is...
-
An arrow is shot from a height of 1.95 m toward a cliff of height H . It is shot with a velocity of 25 m/s at an angle of 60 above the horizontal. It lands on the top edge of the cliff 3.67 s later....
-
In cell K3, enter a formula using the COUNTIF function that counts the number of Expansion projects, checking that the column of project types in the Projects table (Projects[Project Type]) is equal...
-
Everything You Need Online, 2019 Income Statement ($ in millions) Amount $281,342 $205,768 $40,213 $19,900 $15,461 Net Sales Cost of goods sold Other operating costs Depreciation Earnings before...
-
Ignoring the potential impact of any accounting change and excluding the investment in associates, the net profit margin for Colorful Concepts would be closest to: A. 6.0%. B. 7.2%. C. 7.5%. Sergei...
-
When Marks translates his forecasted balance sheet for Julius into US dollars, total assets as of 31 December 20X2 (dollars in millions) will be closest to: A. $1,429. B. $2,392. C. $3,703. Romulus...
-
If Ukraines economy becomes highly inflationary, Eurexim will most likely translate inventory by: A. restating for inflation and using the temporal method. B. restating for inflation and using the...
-
Based on Leenids analysis of the results of the initial screening, relative to Colorful Concepts the bond rating of Silk Road should be: A. lower. B. higher. C. the same. Sergei Leenid, CFA, is a...
-
Compared with using the Singapore dollar as Acceletrons functional currency for 2007, if the US dollar were the functional currency, it is most likely that Redlines consolidated: A. inventories will...
-
Explain why the first meeting of the team is important for the team's success. Describe the approach you would implement to your initial meeting with your team: to meet collectively with its members...
-
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.
-
The tube is subjected to a torque of 750 N. m. Determine the amount of this torque that is resisted by the gray shaded section. Solve the problem two ways: (a) by using the torsion formula, (b) by...
-
The solid shaft has a diameter of 0.75 in. If it is subjected to the torques shown, determine the maximum shear stress developed in regions BC and DE of the shaft. The bearings at A and F allow free...
-
The solid shaft has a diameter of 0.75 in. If it is subjected to the torques shown, determine the maximum shear stress developed in regions CD and EF of the shaft. The bearings at A and F allow free...
Study smarter with the SolutionInn App