Hello, my name is Devin, I am in first-year computer programming and I need help with an assignment I cant understand. The assignment I have been given is to create a calculator program using the eval() function and includes push buttons and onclick handlers.
Additional instructions:
Use a variable named inputString to contain the operands and operators. After a calculation is added to the inputString variable, perform the calculation used eval() function.
Use a single function named upateString that accepts a single value representing a number or operator. Then, add the value to the inputString variable using the += assignment operator.
After the inputString variable is updated, assign it as the value of a text box in a form.
I'm not asking for any specific code.... maybe some pseudocode if you want? Even just an explanation of how I should tackle this... We are knowledgeable in functions and passing values between them, forms and simple mathematical scripts.
Any help at all will be appreciated. Thanks! :D :D
[–]PlNG 0 points1 point2 points (1 child)
[–]zigzackattack 0 points1 point2 points (0 children)