Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

eng zeinab

engzeinabengzeinab fayoumPosts: 1Member

Title: - "Expression Calculator"
Description: - Scan a keyboard to read an arithmetic expression and write the result to an LCD character display.
Details: -
• The program is to read an arithmetic expression consisting of 8-bit operands and the mathematical operators -, +, *
• The operands range is to be -128 to 127
• The multiplication operator is to have a higher priority than the addition or subtraction operators.
• The result is t`o be displayed as a signed decimal quantity
• The expression is to be limited by 16 characters including operands and operators
• Add an option to your program such that you can delete the last entered digit or operator “backspace”.

    example : 

The input expression is : 15+4*5-60

After pressing the “equal” button : Result= -25
Sign In or Register to comment.