hey..i need help for that question..this is my homework and i have to submit it until sunday night..this is an emergency..please look at that..
Question 1 (25 pts.)
Write a basic calculator which interprets the given strings and calculates the results. Your calculator must support four arithmetic operations (‘+’, ‘-’, ‘*’, ‘/’) and assignment operator (‘=’). User can use variables. For example:
Enter the command: a = 6.4
a = 6.4000
Enter the command: b = 3.5
b = 3.5000
Enter the command: a + b
ans = 9.9000
Enter the command: width = ans * 3.5
width = 34.6500
Enter the command: quit
Ok. Bye.
Hint: You may define a struct to hold the variables which contains variable names and values.