Click here to Skip to main content
15,879,239 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C++
%include "io.mac"
.DATA
;binary
prompt1	db 'For ADDITION enter: 1',0
	db 'For SUBTRACTION enter: 2 ',0
	db 'For MULTIPLICATION enter: 3 ',0
	db 'For DIVISION enter: 4 ',0
	db 'For PERCENTAGE enter: 5 ',0
	db 'For PERCENTAGE CHANGE enter: 6 ',0
	db 'For PERMUTATION enter: 7' ,0
	db 'For COMBINATION enter: 8 '
	db 'For COMPARISON enter: 9 ',0
	db 'For GCD enter: 10',0
	db 'For LCM enter: 11 ',0

;uniary operations
	db 'For FACTORIAL enter: 12',0			
	db 'For FIBBONACI enter: 13 ',0
	db 'For SQUARE enter: 14',0
	db 'For CUBE enter: 15 ',0
	db 'For MODULUS enter: 16',0
	db 'For check EVEN-ODD enter: 17' ,0
	db 'For SQUARE-ROOT enter: 18 ',0
	db 'For calculating FLOOR enter: 19 ',0
	db 'For calculating CEIL enter: 20 ',0
	db 'For caculating N-th POWER enter: 21 ',0
	db 'For 1-10 MULTIPLES of INTEGER enter: 22 ',0

;Geometry
	db 'For SLOPE enter: 23 ',0
	db 'For PYTHAGORAS THEOREM enter: 24 ',0
	db 'For HEROS FORMULA enter: 25 ' ,0
	db 'For calculating AVERAGE enter: 26 ',0	
;circle
	db 'For DEGREE to RADIAN enter: 27 ',0
	db 'For RADIAN to DEGREE enter: 28 ',0
	db 'For CIRCUMFERENCE of a circle enter: 29 ',0
	db 'For AREA of a CIRCLE enter: 30 ',0
	db 'For RADIUS of a CIRCLE enter: 31 ',0
;rectangle
	db 'For PERIMETER of a RECTANGLE enter: 32 ',0
	db 'FOR AREA of a RECTANGLE enter: 33 ',0
;square
	db 'For PERIMETER of a SQUARE enter: 34 ',0
	db 'For AREA of a SQUARE enter: 35 ',0
;triangle	
	db 'For PERIMETER of a TRIANGLE enter: 36 ',0
	db 'For AREA of a RIGHT ANGLE TRIANGLE enter: 37 ',0

;physical quantities	
	db 'For calculating SPEED enter: 38 ',0
	db 'For calculating VELOCITY enter: 39 ',0
	db 'For calculating ACCELERATION enter: 40 ',0
	db 'For calculating FORCE enter: 41 ',0
	db 'For calculating POWER enter: 42 ',0
	db 'For calculating WORK done enter: 43 ',0
	db 'For calculating ENERGY enter: 44 ',0

;conversions from decimal
	db 'For DECIMAL to BINARY enter: 45 ',0
	db 'For DECIMAL to BASE-5 enter: 46 ',0
	db 'FOr DECIMAL to OCTAL enter: 47 ',0
	db 'For DECIMAL to HEXADECIMAL enter: 48 ',0

;conversion to decimal
	db 'For BINARY to DECIMAL enter: 49 ',0
	db 'For BASE-5 to DECIMAL enter: 50 ',0
	db 'For OCTAL to DECIMAL enter: 51 ',0
	db 'For HEXADECIMAL to DECIMAL enter: 52 ',0
	
;matrix 
	db 'For SCALER MULTIPLICATION of 2*2 MATRIX enter: 53 ',0
	db 'For DETERMINANT of 2*2 MATRIX enter: 54 ',0
	db 'For ADJOINT of 2*2 MATRIX enter: 55 ',0
	db 'For TRANSPOSE of 2*2 MATRIX enter: 56 ',0
	db 'For INVERSE of 2*2 MATRIX enter: 57 ',0
;sorting 
	db 'For SORTING enter: 58 ',0
	
nwln
db 'Select operation: 1-58 ',0
;take number from user 1-50 and then perform that operation
Posted
Updated 3-May-14 3:37am
v2
Comments
Richard MacCutchan 3-May-14 9:36am    
What is your problem?
Richard MacCutchan 3-May-14 9:39am    
You could simplify this (for the users' benefit) by letting them select the group first, and then the specific operation within that group. That would also reduce the number of menu items to be displayed at each selection.

Is there a reason why you are using Assembler rather than C/C++/C#/VB etc?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900