Main program that starts the recursion off

Assignment Help Business Management
Reference no: EM132285426

Assignment:

Allow the user to enter a number of strings up to a maximum of 100 (MAX EQU 100). Set the maximum length of each of your strings as a constant at the top of your program. For example, you could set MAXLEN EQU 14 where there are a maximum of 12 characters in the string, a carriage return, and a line feed. I will need to be able to change MAXLEN in this one location, so make sure to pass the maximum string length to your procedures. Declare one array in your main program. Do not simply sort another array that contains the memory addresses of each string. Any string that starts with "x" is interpreted as the sentinel value indicating that the user is done entering strings. Display the unsorted array.

Sort the array of strings using quick sort. Write procedures as needed using multiple files. Header files should use conditional assembly. Your partition procedure should call a swap procedure that uses the stack for temporary swap space. Do not use a .DATA section in any procedure. You should also have a quicksort procedure called by the main program that starts the recursion off with the correct parameters.

Your program should be able to read strings in from an input file. The strings in the provided file are all the same length (spaces have been appended at the end of the strings to make them the same length). Your program should also be able to sort strings of differing lengths inputted without an input file. If two strings are identical except that one string is longer than another, the shorter string should come first.

Files

  • str_utils.h
  • str_utils.obj
  • build.bat

Program Specification:

  • Strings
  • movsb
  • cmpsb
  • repeat
  • ESI
  • EDI
  • Swap procedure
  • Directly use movsb and repeat in this procedure
  • Use the stack for temporary swap space (no .DATA in the procedure!)
  • Other Procedures
  • Compute address procedure (required for array random access)
  • Partition procedure that uses your swap procedure
  • Quicksort recursive procedure
  • Quicksort called by main program (starts recursion)
  • Conditional Assembly
  • Loops
  • Conditionals
  • Recursion
  • Arrays

Submission:

Comment and Submit Electronically:

  • quicksort.asm (main program)
  • quicksort_proc.asm (main program)
  • all supporting files (headers and any other items that you wrote)

Reference no: EM132285426

Questions Cloud

Given a collection of numbers : Given a collection of numbers, return all possible permutations.
Determine a possible timeline for the execution : Determine a possible timeline for the execution of the union based on the plan you drafted with rationale. Speculate two (2) of the management teams' objections
Evaluate the value of an arithmetic expression : Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Provide a detailed explanation of the monte carlo simulation : Write a paper that provides a detailed explanation of the Monte Carlo simulation and provide an example of how you would use it in a decision-making process.
Main program that starts the recursion off : You should also have a quicksort procedure called by the main program that starts the recursion off with the correct parameters.
Discuss how the inventory of merchandising company differs : Discuss how the inventory of a merchandising company differs from that of a manufacturing company.
Corresponding bits in binary representation : We define f(X, Y) as number of different corresponding bits in binary representation of X and Y. For example, f(2, 7) = 2
Analyze business communication situations : Competency 1: Analyze business communication situations. Competency 2: Analyze the interrelationships of communication within organizational systems.
Provide an analysis of the project sponsors risk tolerance : Construct a table or chart to present your qualitative and quantitative risk analysis of all 20 risks to include their risk ranking.

Reviews

Write a Review

Business Management Questions & Answers

  Why are clarity and certainty necessary to communication

Provide an example from personal experience. Why are clarity and certainty necessary to each communication flow's proper function?

  What is the current value of stock

The standard deviation of their returns has been 16.0%, and their bonds are earning 7.9%. What is the current value of this stock if the required return is 9.8%

  Windows and android operating systems

How does that impact the types of applications that each can manage?

  Justice department said the court decision

Explain the following citation "The Justice Department said the court's decision would save customers and taxpayers up to $500 million a year." How it might relate to demand elasticity? Is it the only benefit to consumers?

  What are the major trade policies for each country

What are the major trade policies for each country? Which policy in each country do you think is most important and why? What do you think might be a necessary trade policy that has not yet been implemented and why?

  Define the term organizational decentralization

What is required to implement an organization's commitment to social responsibility? What are the main obstacles to implementing socially responsible policies? Define the term organizational decentralization.

  Managing diverse workforces

Discuss how do you manage diverse workforces in different nations to achieve maximum productivity? Please provide examples and references.

  How do you think ethical actions of business leaders effect

How do you think ethical actions of business leaders (positive or negative) effect the actions of their subordinates. Why do you think it is important to do so?

  What is the wacc for allfresh limited

What is the WACC for Allfresh Limited using the current market values of debt and equity?

  Determine and explain the specific methods

Develop, analyze, and explain requirements that could be used in the personnel selection process for management positions in the company

  What mechanisms should put in place to better align managers

Describe factors that contributed to rise and fall of Nortel. What mechanism should be put in place to better align managers with the interests of shareholders?

  What was gdp in the first quarter

What was Peuzo and Engin's total contribution to National Income in the fourth quarter of 2014? What was GDP in the first quarter of 2015?(Round to the nearest whole dollar)

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd