Implement the queueinterface

Assignment Help Business Management
Reference no: EM132243002

Data Structures

1. a generic queue class called MyQueueMyQueue will implement the QueueInterface given you. You will be creating MyQueue from scratch (do not use an internal object of the Queue class from java.util)

2. a generic stack class called MyStackMyStack will implement the Stack Interface given you. You will be creating MyStack from scratch (do not use an internal object of the Stack class from java.util)

Utility Class

The Notation class will have a method infixToPostfix to convert infix notation to postfix notation that will take in a string and return a string, a method postfixToInfix to convert postfix notation to infix notation that will take in a string and return a string, and a method to evaluatePostfix to evaluate the postfix expression. It will take in a string and return a double. A method to evaluateInfix to evaluate the infix expression. It will take in a string and return a double. Follow the Javadoc provided for you.

In the infixToPostfix method, you MUST use a queue for the internal structure that holds the postfix solution. Then use the toString method of the Queue to return the solution as a string (this will differ slightly from the algorithm in your book).

For simplicity sake:

a. operands will be single digit numbers

b. the following arithmetic operations will be allowed in an expression:

+         addition

-         subtraction

*         multiplication

/          division

Exception Classes

Provide the following exception classes:

1. InvalidNotationFormat - occurs when a Notation format is incorrect

2. StackOverflowException - occurs when a top or pop method is called on an empty stack.

3. StackUnderflowException - occurs when a push method is called on a full stack.

4. QueueOverflowException - occurs when a dequeue method is called on an empty queue.

5. QueueUnderflowException - occurs when a enqueue method is called on a full queue.

Reference no: EM132243002

Questions Cloud

What is the concept and dimensions of employee performance : What is the concept and dimensions of employee performance. Discuss the advantage of performing staff Appraisal during the project implementation phase.
What is the difference between a join and union statement : Answer the questions below using the same dataset. For instance, if you decide to use a "vendor database" in your example, use it to answer both questions.
Why organizations need to know the information : Successful compensation programs are the result of well-defined and closely managed systems. It also sets the tone for an overall total reward package.
Describe what happens to this eutectic liquid : Describe what happens to this eutectic liquid as it cools through the solidus - how much liquid is left at a temperature just above the solidus
Implement the queueinterface : A generic queue class called MyQueue. MyQueue will implement the QueueInterface given you. You will be creating MyQueue from scratch
Market research can help entrepreneurs collect : Market research can help entrepreneurs collect and analyze data and understand which products and services are in demand
Why are you inspired to possibly research in this area : Why are you inspired to possibly research in this area and/or why do you think it is important to research in this area?
Analyze in detail the current hr practice and policy : Analyze in detail the current HR practice, policy, process, or procedure that you believe should be changed. Formulate three (3) valid reasons for the proposed.
Explain why you believe planning is important : Select one of the following businesses: a large bank, a government agency, or a hospital, and explain which systems you feel are mission critical.

Reviews

Write a Review

Business Management Questions & Answers

  Analyze three to four strategies for the agencys future plan

Analyze three to four strategies for the agency's future plans for administrative ethics and legal to improve the agency's operation and its primary recipients.

  Discuss the aspects of scope determination

Discuss the aspects of scope determination, scenario classification, global analysis/design, dependency analysis, leading aspect selection, and detailed design.

  Determine the purpose of your presentation

Research information on this topic - Determine the purpose of your presentation and your audience.

  Unemployment caused by information systems

Should organizations be responsible for unemployment caused by their information systems? Why or Why not?

  Primary characteristics of action plan objectives

Prepare and submit a 5-8 slide Power Point presentation describing the primary characteristics of action plan objectives? Are these characteristics descriptive of good organizational strategic goals? Why or why not?

  Pros and cons of both perspectives

Which of the Theories- X or Y - do you most align with? How does that affect your behavior as a manager? Based upon what you know about the pros and cons of both perspectives, what one thing can you do to make you a more effective manager?

  Natural and capital resources

What are the factors of production and what are our natural and capital resources?

  How would we model price volatility using a supply

How would we model price volatility using a supply and demand graph? Explain and use a graph as necessary.

  Personal learning style evaluation exampleexplain your

personal learning style evaluation exampleexplain your personal learning style. describe how you could change your

  Impact performance and commitment in the workplace

Examine how job satisfaction, stress, and motivation impact performance and commitment in the workplace.

  Corporate social responsibility report

For this coursework, you are required to write an essay of no more than 2000 words to critically evaluate the sustainability/citizenship/corporate social responsibility report you have chosen. The word limit excludes a list of references.

  How the application of the topic reflects gods design

Think of a non-profit organization you are familiar with. How the application of the topic reflects God's purpose or design

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