-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainfile.java
More file actions
29 lines (18 loc) · 749 Bytes
/
Mainfile.java
File metadata and controls
29 lines (18 loc) · 749 Bytes
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
import java.util.Scanner;
public class Mainfile {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println(" Advanced Algorithm Decision Engine\n");
System.out.print("Describe your problem: ");
String desc = sc.nextLine();
System.out.print("Enter input size (n): ");
int n = sc.nextInt();
System.out.print("Is graph weighted? (true/false): ");
boolean weighted = sc.nextBoolean();
System.out.print("Has negative weight? (true/false): ");
boolean negative = sc.nextBoolean();
Problem problem = new Problem(desc, n, weighted, negative);
DecisionEngine.decide(problem);
sc.close();
}
}