Modify the infix evaluation program

Assignment Help Data Structure & Algorithms
Reference no: EM13843533

Assignment 2
• Modify the infix evaluaDon program so it processes assignment statements where the expressions can contain variables. A variable will be a string of 1 to 6 alphabeDc characters.

• The values of variables must be stored in a symbol table that is stored in a binary file. The symbol table should be stored as a sorted (based on the variable) sequence. To find the value of variable the program must search the symbol table using a binary search. I will review binary search in class and give an example using an ArrayList

Assignment 2

• All accesses (looking up the current value, giving a variable a new value, etc) to the symbol table must use the binary file. That is you cannot just read in the contents of the file into memory (e.g. into an ArrayList) and then access this informaDon from the ArrayList.

• UniniDalized variables are assumed to have the value 0.

Assignment 2

• The program expects two command line arguments. The first argument is the name of a text file that contains one assignment statement per line. The second command line argument is the name of the binary file that will be used to store the symbol table

• As in assignment one the tokens in the assignment statements will be separated by whitespace.

• You can assume the input is syntacDcally correct

Assignment 2

• AUer all the lines in the input file have been evaluated the program should print the contents of symbol table.


Attachment:- a2.pdf

Reference no: EM13843533

Questions Cloud

The ethical implications of insider trading : Write a 3–5 page essay about the ethical implications of insider trading. Financial statements and information are very important to investors. If some of this information is used or shared before it is released to the public
Analysis of real-world situation : The purpose of the Final Project is to apply the concepts and techniques of the module to the analysis of real-world situations or problems.
Terms depreciation and accumulated depreciation : What is meant by the terms depreciation and accumulated depreciation? In which financial statement does each of these items appear? What is accrual accounting and how does it influence financial statement presentation?
Find the firm''s debt ratio : Given the following information for the Duke Tire Company, find the firm's debt ratio (i.e., total liabilities / total assets): ROE (N/E) = 0.33 (expressed as a decimal) Total asset turnover ratio (S/A) = 3.5
Modify the infix evaluation program : Modify the infix evaluation program
Briefly explain how the "january effect" anomaly : Briefly explain how the "January effect" anomaly contradicts the efficient market hypothesis or theory.
Discuss the importance of every financial advisor : Discuss the importance of every financial advisor creating an investment policy statement for each client.
What is a pre-startup safety review : What is a Pre-Startup Safety Review (PSSR)? Why are Pre-Startup Safety Reviews so important and neededon new projects? What do safety reviews address?
Describe what is meant by the security market line : Describe what is meant by the security market line being the graphic representation of the capital asset pricing model.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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