Unlikely

Last 10 changes

peermore
peermore
peermore
aboutchris
augury
socialtext
pictures
socialtext
socialtext
aboutchris

122 words
253 defs

a593

[ Prev ] [ Next ]

Revision:
2002-02-19 14:32:25 ]

Backlinks:
craft
processmanagement


Date: Tue, 12 Feb 2002 19:16:54 -0500
From: Roy Eugene Vinner <roypivn@cs.indiana.edu>
Subject: Assignment 3

It will be posted to the web page as well.
-------------------------------------------
Due 2/23

The user can input two 4-digit hex numbers and operators and equal
sign.  Get that input. Use the equal sign as the terminator for user
input. Then find out what operator the user used and perform
caculations accordingly.  Operators will be limited to "+, -, *, /, =".

For example, the user input can be
ABCD*E999=

Then your output should look like:
ABCD*E999=9CC44285
xxxxoxdddodxxddddd

Although it appears similar to the last assignment, this time you
should use jump tables to jump to the subroutines where calculations
are performed. Also use jump tables to store 'x', 'd' ... 

For an A+ grade, your program should provide error handling. That is,
if user input is illegal, you need to print out a message and start
over again. Also, the program should compute the result--if the input
string is meaningful,i.e., in the format above-- returning the value
in either decimal or hexadecimal numerals at the discretion of the
author. 
[ Contact ] [ Old Blog ] [ New Blog ] [ Write ] [ AboutWarp ] [ Resume ] [ Search ] [ List Words ] [ Login ]