This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: EEC 70: Computer Structures and Assembly Programming Winter Quarter 2006 Laboratory Exercise 3: Arithmetic Expression Evaluator Due Date: Thursday, February 2, 2006 11:59 pm Full Points 100 Purpose of the Exercise This exercise will reveal the details of how computers read input numbers. You will re- alize that all input is done using characters. The characters are then converted into the appropriate representation. Specifically, you will see how real numbers are read by the SAL program using the get ch command. This program will further enhance your understanding of procedures in SAL and representation of numbers and ASCII characters. Detailed Description of the Problem The input to your program will be an arithmetic expression terminated by the equal sign, i.e. character = The output of your program should be the value denoted by the arithmetic expression expressed as a real number. For example, if the input to your program is 3.4 + 2.3 - 1.0 = your program should print out the value 4.7 followed by a carriage return. (Please see the last section of this document for a set of sample inputs and outputs) Note that, an arithmetic expression is a set of numbers separated by arithmetic operators....
View Full Document
This note was uploaded on 08/14/2008 for the course EEC 70 taught by Professor Wilken during the Spring '05 term at UC Davis.
- Spring '05