-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreq.java
81 lines (73 loc) · 2.06 KB
/
req.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
/*
* Author Ozkan Sener
* ozkansener@gmail.com
*/
import java.util.*;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
public class demo {
public static void main(String[] args) throws FileNotFoundException {
Scanner scan = new Scanner(System.in).useDelimiter("\\n");
PrintWriter pw = new PrintWriter(new File("test.csv"));
StringBuilder sb = new StringBuilder();
sb.append("id");
sb.append(',');
sb.append("Description");
sb.append(',');
sb.append("Type");
sb.append(',');
sb.append("Prio");
sb.append(',');
sb.append("Source");
sb.append(',');
sb.append("Rational");
sb.append(',');
sb.append("Verfication");
sb.append(',');
sb.append("Validation");
sb.append('\n');
char a;
int i = 1;
do {
String strI = Integer.toString(i);
sb.append(strI);
sb.append(',');
System.out.print("A one sentence statement of the intention of the requirement : ");
String des = scan.next();
sb.append(des);
sb.append(',');
System.out.print("Requirement Type:(non/fun) : ");
String type = scan.next();
sb.append(type);
sb.append(',');
System.out.print("How important is this requirement (m(must),s(should),c(could),w(want)");
String prio = scan.next();
sb.append(prio);
sb.append(',');
System.out.print("Who is the source of the requirements? : ");
String source = scan.next();
sb.append(source);
sb.append(',');
System.out.print("Why does the user want this requirement? : ");
String rat = scan.next();
sb.append(rat);
sb.append(',');
System.out.print("How do we verify that the software is conform specifications? : ");
String ver = scan.next();
sb.append(ver);
sb.append(',');
System.out.print("How do we validate that the software does what user really requires? : ");
String val = scan.next();
sb.append(val);
sb.append('\n');
System.out.println("Continue(Y/N)");
a = scan.next(".").charAt(0);
i++;
} while (a == 'Y' || a == 'y');
pw.write(sb.toString());
pw.close();
scan.close();
System.out.println("done!");
}
}