-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLabCalculator.class
More file actions
152 lines (147 loc) · 11.1 KB
/
LabCalculator.class
File metadata and controls
152 lines (147 loc) · 11.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
Êþº¾ 8Œ
z Í Î ˆ Ï Ð Ñ Ò
Ó ˆ Ô ˆ Õ Ñ Ö ×
Ø Ù Ú Û
Ü
Ý Þ ˆ ß ˆ à ˆ á
â ˆ ã ä
å æ ˆ ç
ˆ è
é
ˆ ê
ˆ ë ì í î
ˆ ï
ˆ ð ñ ò
ˆ ó ô
ˆ õ ö
ˆ ÷ ø ù
ˆ ú û
ˆ ü
ˆ ý þ
ˆ ÿ ˆ
ˆ
ˆ
Ø
ˆ
ˆ
ˆ
ˆ
ˆ
ˆ
ˆ
ˆ
ˆ
ˆ
ˆ
Ý
ˆ
I
!
N" $@( ˆ%@ @" '(
·)@$ *@& +,@* @, -@. .@0
ˆ/
01 23
·4
·5
·6
·7
08 : :<=
·>
0?
0@
0A
0B
0C
0D
0E@¿ •ª÷@> FG operation I num n1 D n2 suppRoot pi
ConstantValue@ !ÿ.Hè§ hexadecimal Ljava/lang/String;
operationMode Ljava/lang/Integer; reader Ljava/util/Scanner; words result Ljava/lang/Double; memory [Ljava/lang/Double;
operationMenu <init> ()V Code LineNumberTable main ([Ljava/lang/String;)V
StackMapTable
StoreInMemory (D)V PrintMemory PrintResult Sum (DD)D Subtraction Division Multiplication Module
squareRoot (D)D empowerment Factorial DecToHex (D)Ljava/lang/String;H decimalToHexadecimal hexadecimalToDecimal (Ljava/lang/String;)D decimalToBinary (I)Ljava/lang/String; binaryToDecimal binaryToHexadecimal &(Ljava/lang/String;)Ljava/lang/String; hexadecimalToBinary Notation Degrees Radians Sin Tan Cos Log10 Logn Rootn <clinit>
SourceFile LabCalculator.java ¡ java/lang/Double ž java/util/ScannerIJK L ˜ ™ – —MN OPQ ,WELCOME TO THE CALCULATOR MADE TO YOUR TASTE MWhich mode do you want to use?
1. One operation at a time
2. Operations flowRSTUV Ÿ • ‰ Š › œWX Œ %Enter the numbers you wish to operateYX Enter the other number Ž « ¬UZ ª ¡ ¬ Enter the dividend Enter the divisor )0 is not a valid value. Enter the divisor ® ¬ ¯ ¬ *Number to which you want to get the module Module value ° ¬ Enter the number to be channeled ± ² Enter the base value ³ ¬ Enter the exponent $Enter the number you wish to operate ´ ² VWhat conversion do you want to do?
1. From degrees to radian
2. From radian to degrees à ²  ² ·What conversion do you want to do
1. Decimal to hexadecimal
2. Decimal to binary
3. Hexadecimal to decimal
4. Binary to decimal
5. Hexadecimal to binary
6. Binary to hexadecimal ¸ ¶ ‹ Š » ¼ Enter the value[\ ¹ ºP] ½ º À ¿ ¾ ¿ © ¡ +Seleccione una posicion de memoria de 0 a 9 Á ¶ Ä ² Æ ² Å ² Ç ² Enter the value that will log È ² É ¬ Enter the index Enter a valid operation option^S § ¨_\ java/lang/Exception )Error: You have entered an invalid option BootstrapMethods`abcd\ef "java/lang/IllegalArgumentException
Invalid Value Qgbh ibj .0kl A B C E F µ ¶mn ²bo 0123456789ABCDEFp\qSrstuv ¬wb ¿x %9.2E java/lang/Objectyz{ ²| ²} ²~ ² ²€ ² ²ÔEnter the number of the operation you wish to perform
1. Sum
2. Subtraction
3. Division
4. Multiplication
5. Module
6. Squere root
7. Empowerment
8. The factorial of a number
9. Conversion from degrees to radians and vice versa
10. The conversion between binaries, n1s and hexadecimals
11. Memory of the results of the last 10 operations
12. scientific notation
13. Sin
14. Cos
15. Tan
16. base logarithm 10
17. base logarithm n
18. nth root
0. Exit
LabCalculator java/lang/String java/lang/System in Ljava/io/InputStream; (Ljava/io/InputStream;)V out Ljava/io/PrintStream; java/io/PrintStream println (Ljava/lang/String;)V nextInt ()I java/lang/Integer valueOf (I)Ljava/lang/Integer; doubleValue ()D
nextDouble (D)Ljava/lang/Double; next ()Ljava/lang/String; (Ljava/lang/Object;)V intValue nextLine
‚ƒ []= makeConcatWithConstants '(ILjava/lang/Double;)Ljava/lang/String;
getMessage
isInfinite ()Z = &(Ljava/lang/Double;)Ljava/lang/String; '(Ljava/lang/String;D)Ljava/lang/String; replace D(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String; java/lang/Math floor 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; toUpperCase length charAt (I)C indexOf (I)I pow 0 1 format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; toDegrees toRadians sin tan cos log10 log„bˆ $java/lang/invoke/StringConcatFactoryŠ Lookup InnerClasses ˜(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;‹ %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles ! ˆ z
‰ Š ‹ Š Œ Ž ‘ ’ ” • – — ˜ ™ š ™ › œ ž Ÿ • ¡ ¢ *· ± £ ¤ ¥ ¢
½ ³ » Y² · ³ ² Ç /²
¶ ² ¶ ²
¶ ²
¶ ² ¶ ¸ ³ ² ² ¶ ² ¶ ³ ² Æ ² ¶ ³ ² ª { Y ` à 9 y Á ä 0 e ù * J s œ Å ú /³ §6² Ç ² ¶ ² ¶ ³ § ² ¶ ² ¶ ³ ² ² ¸ ¸ ³ ¸ §ö² Ç ² ¶ ² ¶ ³ § ² ¶ ² ¶ ³ ² ² ¸ ¸ ³ ¸ §¶² Ç ² ¶ ² ¶ ³ ² ¶ ² ¶ ³ ² —š ² ¶ ² ¶ ³ §ÿç² ² ¸ ¸ ³ ¸ §]² Ç ² ¶ ² ¶ ³ § ² ¶ ² ¶ ³ ² ² ¸ !¸ ³ ¸ §² Ç ² "¶ ² ¶ ³ ² #¶ § ² #¶ ² ¶ ³ ² ² ¸ $¸ ³ ¸ §Õ² %¶ ² ¶ ³ ² ¸ &¸ ³ ¸ §²² Ç ² '¶ ² ¶ ³ § ² ² ¸ (³ ² )¶ ² ¶ ³ ² ² ¸ (¸ ³ ¸ §f² Ç ² *¶ ² ¶ ³ § ² ¸ +³ ² ¸ +¸ ³ ¸ §1² ,¶ ² ¶ H² Ç I'—š #² *¶ ² ¶ ³ ² ¸ -¸ ³ § V² *¶ ² ¶ ³ ² ¸ .¸ ³ § 6'—š ² ¶ ³ ² ¸ -¸ ³ § ² ¶ ³ ² ¸ .¸ ³ ¸ §² /¶ ² ¶ >ª û ( L l “ º ܲ *¶ ² ¶ ³ ² ¸ 0:² ¶ § ²² *¶ ² ¶ ³ 1² ² 1¸ 2¶ § ’² 3¶ ² ¶ 4:¸ 5¸ ³ ² ² ¶ 6§ k² 3¶ ² ¶ 4:¸ 7¸ ³ ² ² ¶ 6§ D² 3¶ ² ¶ 4:¸ 8:² ¶ § "² 3¶ ² ¶ 4:¸ 9: ² ¶ §³ ¸ :² ;¶ ² ¶ 6² 2³ §l² 3¶ ² ¶ ³ ² ² ¸ <¶ §L² Ç ² *¶ ² ¶ ³ ² ¸ =¸ ³ ¸ §#² Ç ² *¶ ² ¶ ³ ² ¸ >¸ ³ ¸ § ú² Ç ² ¶ ² ¶ ³ ² ¸ ?¸ ³ ¸ § Ѳ Ç ² *¶ ² ¶ ³ § ² ¸ @³ ² ¸ @¸ ³ ¸ § œ² Ç ² A¶ ² ¶ ³ § ² ¸ B³ ² ¸ B¸ ³ ¸ § g² Ç ² %¶ ² ¶ ³ § ² ² ¸ C³ ² D¶ ² ¶ ³ ² ² ¸ C¸ ³ ¸ § ²
¶ ² E¶ ²
¶ ² ¶ F« Q Q² Æ (² Ÿ ² Ÿ ² Ÿ ² ¶ ¸ G³ ² ¶ HW§ § #L²
¶ ² J¶ ²
¶ ² ¶ HW² Çùš± UX I £ Å + , / 0 # 1 + 2 3 3 ; 4 G 6 P 7 Y 8 _ 9 h ; Ä = È > Ë @ Ñ A Ù B å E í G ö H I J L M N% Q- S6 TE UH VK XQ YY Zb \j ]s ^{ `ƒ a cž d¡ e¤ gª h² i¾ lÆ nÏ oÞ pá qä sê tò uû v y { |& }) ~, €4 = ‚I ƒL „O †U ‡] ˆi Šu Œ} † Ž• ˜ › ’¡ “© ”µ —¾ ™Ê šÍ ›Ð Ø Ÿß å ¡ë ¢ó £ü ¤ § ¨ ©+ 1 ®: ¯I ²R ³^ ¶a ·d ºl ¼s ½œ ¿¤ À Áµ ½ ÃÀ ÅÈ ÆÑ ÇÝ Èà Ëè Ìð Íû Î Ï Ò Ó Ô" Õ+ Ö. Ù6 Ú> ÛE ÜM ÝP àX á` âg ão år çv èy é ê‰ ë’ ì• î ï¦ ð² ñµ ó» ôà õÌ ÷Ø øÛ ùÞ ûä üì ýõ ÿ
*- 06>
JS_beksˆ”—š! "¨#´%À'È(Ñ)à*ã+æ-î.ö/þ3 5>6G7K9R:UEX?YAaBiCqDxG~H ¦ S @1 û [!"%ü :ú þ 7 #&&!ø "%!* B I § ¨ ¢ ^ '² ¾d=ž ² ² d2S„ÿ§ÿí² &¸ S± £ K L K N &O ¦ ü ú © ¡ ¢ | 0;² ¾¢ ² ² 2º K ¶ „ §ÿä§ K² *¶ L¶ ± ! $ I £ S
T S !Y $W %X /Z ¦ ü ú B I
ª ¡ ¢ W &² ¶ M™ ³ » NYO· P¿² ² º Q ¶ ± £ ] ^
_ a %b ¦ « ¬ ¢ $ &(c9¯ £
n o ¬ ¢ $ &(g9¯ £
| } ® ¬ ¢ $ &(o9¯ £
Š ‹ ¯ ¬ ¢ $ &(k9¯ £
˜ ™ ° ¬ ¢ $ &(s9¯ £
¦ § ± ² ¢ k /I9 R˜ "² T Uo& U² TkocI(³ Tc9§ÿÛ(¯ £ ³ ´ µ ¶ $´ -¸ ¦
ý ú ' ³ ¬ ¢ W 99(˜ &k9c9§ÿí¯ £ Å Æ
Ç Æ É ¦
ý ú ´ ² ¢ J I&—™ (&kI&gG§ÿò(¯ £ Õ Ö × Ø Ú ¦ ü µ ¶ ¢ ä x
M&—› & W˜ ,&º Y M,Z
¶ [M§ T& \—š ^M§ F& _—š aM§ 8& R—š bM§ *& c—š eM§ & f—š hM§ & i—š kM,° £ F æ ç è é %ê -ë 3ì ;í Aî Iï Oð Wñ ]ò eó kô sõ v÷ ¦ ü % ·
¸ ¶ ¢ ” I
M& l˜œ &¸ nM§ 7& lo¸ oJ& ls¸ o9¸ n,º p M)G& l—œÿÚ&¸ n,º p M,° £ *
û ý þ & 2 4 < G
¦ ü ·3 ¹ º ¢ ¶
LqL*¶ rKI9*¶ sd66› 0*¶ t6+¶ u6 ‡ l‡¸ vk9(cI„ÿ„§ÿÑ(¯ £ >
% - < A D G J ¦ ÿ · · 1 » ¼ ¢ | *
L=l=p>;š
+º w L§
+º x Lšÿà+° £ *
! # $
% & ' ) $+ (, ¦ ý ·ü ú ½ º ¢ • @HJ*¶ sd6› 06*¶ t0 6 U)¸ v9'‡kcH)cJ„ÿ§ÿÑ'¯ £ . 0 1 2 3 4 5 "7 +8 49 82 >; ¦ þ ü ù ¾ ¿ ¢ , *¸ 7H'¸ 0N-° £ ? @
A À ¿ ¢ 5 *¸ 5H'Ž>¸ 2:° £ P Q R S Á ¶ ¢ / y½ zY&¸ S¸ {M,° £
a b  ² ¢ # &¸ |I(¯ £
g h à ² ¢ # &¸ }I(¯ £
m n Ä ² ¢ &¸ ~¯ £ r Å ² ¢ &¸ ¯ £ v Æ ² ¢ &¸ €¯ £ z Ç ² ¢ # &¸ I(¯ £
€ È ² ¢ * &¸ ‚ ƒ¸ ‚oI(¯ £
… † É ¬ ¢ ( &(o¸ v9¯ £
‹ Œ Ê ¡ ¢ 0 …³ T³ ‡³ ± £
Ë Ì‡
…‰† # & 9 ;