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.
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..
|