lab3 - EEC 70: Computer Structures and Assembly Programming...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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.

Page1 / 3

lab3 - EEC 70: Computer Structures and Assembly Programming...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online