Construction of a functional calculator

Assignment Help Web Project
Reference no: EM131253435

Programming Project -

Description: The programming project will be the construction of a functional calculator.

Calculator Requirements:

• For each computation, accept the expression from an input file (*.inp).

• All output must be written to a file of the same name (*.out). Upon completion of each computational statement, echo the statement to the file and print out the name of each statement variable and its numerical value.

• Detect and report expression errors in an accurate and understandable fashion.

• The calculator must be written in C #

Calculator Components: Your calculator must have the following components:

• Grammar - Provides a blueprint for expression parsing

• Lexical Analyzer - To identify tokens

• Parser - Creates tree to interpret each line of computation

• Symbol Table -- To track variables and their values as they change with each computation

Approach:

• Use the Gold Parse Builder (GPB) to design your lexical analyzer and parser. To get you started, I am providing a sample file that allows it to process input for a simple C-like language (Tiny-DFA.GRM). If you use the GPB, use its Test capability to make sure the input is being tokenized correctly.

• You will need to process the XML output from GPB, which encodes the tables you will need for lexical analysis and parsing. I will provide the code that will allow you to import the XML into a program data structure (tree) and search it.

• To help you, I will upload a set of project resources to D2L.

• You must upload your materials to D2L in a zipped file per the below schedule.

Download file from this link:

https://www.dropbox.com/s/a05p7nk91sclw1e/calculator-project.rar?dl=0.

Reference no: EM131253435

Questions Cloud

Summary of article putting man in contraceptive mandate : Write a summary of the article: "Putting the Man in Contraceptive Mandate". Discuss why both the individual and society should be concerned about current and future implications of this issue.
Find x for the given values : A popular technique arising in methods for minimizing functions in several variables involves a weak line search, where an approximate minimum x∗ is found for a function in one variable, f (x), for which the values of f (0), f (0), and f (1) are ..
Purchase common stocks in two companies : A private investor has no more than $10,000 to purchase common stocks in two companies in the financial sector. After reading many analyst's reports on the two companies, she estimates the chance of a 1% loss on her capital investment in Company A..
Should aiden itemize his deductions-take standard deduction : Compute Aiden’s 2016 taxable income on the basis of the following information. Aiden is married but has not seen or heard from his wife for over three years. What is Aiden's filing status? Surviving spouse c. Should Aiden itemize his deductions or ta..
Construction of a functional calculator : Programming Project Description: The programming project will be the construction of a functional calculator. Calculator Requirements: For each computation, accept the expression from an input file
Ethics associated with current or desired future career : What might be the benefits of joining such a professional organization? - How might a code of ethics help guide you in careerrelated decision making?
What is net neutrality and its mean for internet users : What is net neutrality, and what does it mean for Internet users, small start-ups, and large telecommunications companies?
What is the total overhead cost assigned to the base model : Cleveland Choppers manufactures two types of motorcycles, a Base and a Loaded model. The following activity and costs have been gathered: Product Number of Components Number of Setups Number of Direct Labor Hrs Base 15 20 700 Loaded 25 40 600 Overhea..
Compute the standard deduction : Compute the 2016 standard deduction for the following taxpayers. If an amount is zero, enter "0". Click here to access the standard deduction table to use. a. Margie is 15 and claimed as a dependent by her parents. She has $800 in dividends income an..

Reviews

len1253435

10/24/2016 3:06:58 AM

Please see the deliverable section in "Project Requirement Details" file in the attachments. I have completed the first part which is "Grammar for Lexical Analysis". Please start building the program using the file "Calculator.sln" To understand the assignment please read the two attached word documents.

Write a Review

Web Project Questions & Answers

  Implement the days-to-go feature

"Days-to-Go" is an interesting and useful feature in website design. It shows up the remaining number of days (or even with hours, minutes, and seconds) towards an event.

  Database driven web application

The project is to design, create, evaluate and present/defend a database driven PHP web site, to demonstrate what you have learnt from the module topics.

  What is the benefit of viewing source code on the web

What is the benefit of viewing source code on the Web. What is the purpose of the World Wide Web Consortium and what work does it perform

  Create a narrative that describes site to prospective client

Create a narrative that describes the site to your prospective client. Create a storyboard diagram depicting the layout of your Website. Create a Cascading Style Sheet (.css) for all pages.

  Evaluation at astro bank

Project planning as well as discussion under section ‘How do you keep team members?' on page 137 of the Lientz text, Information Technology Project Management. Identify and critically analyse the criteria the company should use in evaluating the s..

  Website migration project

Website Migration Project

  How to draw a figure of an http get packet

How to draw a figure of an HTTP GET packet that shows the position and size in bytes of the TCP, IP and Ethernet protocol headers.

  The tradeoffs the life of development phase of the project

Initial Plan budget. (Using math for decision-making)You are a manager with budget authority for a new IT project that is being developed for your department. The project is being developed internally by the company IT staff

  What command can combine multiple columns into one

What command can combine multiple columns into one?

  Create a single button iphone application

Create a single button iPhone application that when clicked, displays a popup message reading: "My First App hello world"

  Design a search engine

Delimitations are factors that you intentionally impose to constrain the scope of the study to make it manageable. Delimitations impact the generalizability of the results of the study.

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