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

  Evaluating an ecommerce website

Create a check list that contains key point for evaluating an ecommerce website - Write a short, reflective report about website

  Gpc and runtime magic quotes

Create a script that lets you know whether Zeus or Helios has the GPC and Runtime Magic Quotes turned on or off. The output should have appropriate labels that define what output signified and should display 'ON' or 'OFF' depending on the setting.

  Creating functions through conditional operator

Use the conditional operator and the cal_days_in_month function, determine the number of days in the current month and output to browser whether it is normal month or a leap month.

  Web development projects with database

Since the vast majority of web-development projects involve a database, do you think that computational activities should be performed there, or do you think they belong in the XML page or stylesheet?

  Comparing shelf software packages

Required assistance with comparing and contrasting two main off the shelf software packages that could be implemented in an organization.

  Web based scams

Web phishing, pharming and vishing are popular web based scams. Talk about currently used tools and recommended measures to defeat this kind of attacks efficiently?

  Explanation of contextual links

The most powerful hypertext capabilities is the the contextual link. Wikipedia . com is a great example of a site that utilizes contextual links.

  How architectural and protocol changes occur

Discuss how architectural and protocol changes happen, the administrative organization that oversees the technical development of the Internet,

  Traditional approaches for training professionals

Webinars and other web conferencing techniques have proved most beneficial for the provision of affordable quality corporate training.

  Internet for business

Discuss how can a business use the Internet and give at least three examples with web links demonstrating your answer.

  It influences the behavior of organizations

Information technology influences the behavior of organizations. Name one effect of Information technology implementation and long-term usage you suppose having a positive contribution and one having a negative consequence.

  Importance of a guided navigation system

Explain the use and importance of a guided navigation system and shopping cart for a website designed for e-commerce and business purpose.

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