-
Notifications
You must be signed in to change notification settings - Fork 1
/
EngineersCalci.java
107 lines (73 loc) · 2.51 KB
/
EngineersCalci.java
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
/*
#######################################ENGINEER'S CALCI v 6.9 ######################################################
Changelog:-
------------
1. The Calci is extended to perform Binary, Octal and Hex Conversions
REVISION 6.9.1
1. Decimal to Binary conversion added
REVISION 6.9.2
1. Hex Calculator added
It is possible to convert hex to decimal values
###################################################################################################################
*/
import java.io.*;
class EngineersCalci
{
static BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
public static void main(String args[])throws IOException
{
System.out.println("--------------- MENU ---------------");
System.out.println("1. Linear Equations");
System.out.println("2. Factorial");
System.out.println("3. Matrix multiplication");
System.out.println("4. Eigen Values");
System.out.println("5. Check if a point is inside the circle");
System.out.println("6. Permutation");
System.out.println("7. Combination");
System.out.println("8. Quadratic Equations");
System.out.println("9. Nth root of a no");
System.out.println("10. Check if a no is prime");
System.out.println("11. Generate prime nos");
System.out.println("12. Find the rank of a matrix");
System.out.println("13. Complex calculator");
System.out.println("14. Hex calculator");
System.out.println("15. Linear Equations");
System.out.println("Enter your option");
int x=Integer.parseInt(input.readLine());
switch(x)
{
case 1: LinearEquations d=new LinearEquations();
break;
case 2: Factorial f=new Factorial();
break;
case 3: MatrixMultiplication m=new MatrixMultiplication();
break;
case 4: EigenValues dfx=new EigenValues();
break;
case 5: CirclePointChecker c=new CirclePointChecker();
break;
case 6: Permutation p=new Permutation();
break;
case 7: Combination cdf=new Combination();
break;
case 8: QuadraticEquations q=new QuadraticEquations();
break;
case 9: NthRoot n=new NthRoot();
break;
case 10: IsPrime xfd=new IsPrime();
break;
case 11: GeneratePrime g=new GeneratePrime();
break;
case 12: Rank r=new Rank();
break;
case 13: ComplexConverter cadf=new ComplexConverter();
break;
case 14: HexCalculator adf=new HexCalculator();
break;
case 15: LinearEquations l=new LinearEquations();
break;
}
//Logic l=new Logic();
//ArithmeticProgression p=new ArithmeticProgression();
}
}