Course Description and Objectives:



NEW YORK CITY COLLEGE OF TECHNOLOGY

THE CITY UNIVERSITY OF NEW YORK

Department of Computer Engineering Technology

300 Jay Street, Brooklyn, NY 11201-1909

CET3510 – Microcomputer Systems Technology

Lab #1

Instructions:

In this lab you will create a simple 32-bit calculator. The calculator will display a menu asking the user to perform (1) addition, (2) subtraction, (3) multiplication, (4) exponentiation (5) exit. Once the user selects an operation the program will ask the user for the integer values and perform the operation. The system should display a warning message to the user if any of the values entered is greater than 216 (65536) as the operation might cause overflow. The multiplication operation must be implemented as a loop that adds number repeatedly (i.e. 5*3 will add 5 during 3 iterations). The exponentiation operation must be implemented as a loop that multiplies numbers repeatedly (i.e. 53 will multiply 5 during 3 iterations). Do not use mul, imul, pow or related HLA functions to perform multiplication and exponentiation. Once the program computes the value and displays the result, it should return to the original menu until the user chooses to exit.

Create a Lab Report according to the instructions and format.

Deadline: 27 Feb 2014

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download