Question: For up to 40 points extra credit, you should make the calculator work for both integer and real number separately. Namely, if users enter integers,

For up to 40 points extra credit, you should make the calculator work for both integer and real number separately. Namely, if users enter integers, the output should be integers. If users enter floating point, the poutput should be floating point. In order to run calculator on real numbers, you might need to add the following: %token NUMBER %union { double val; char op; } %type exp term factor NUMBER %type '+' '-' '*' '/' '(' ')' '^' Please use your as the first part of file names. Here is an example xyz12340a81.y. You also need to turn in a one page project report for each part of the project. The report must include the way of running your program, your name and .

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!