-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDashboard.java
More file actions
202 lines (134 loc) · 6.19 KB
/
Copy pathDashboard.java
File metadata and controls
202 lines (134 loc) · 6.19 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
import java.sql.SQLOutput;
import java.util.ArrayList;
import java.util.Scanner;
public class Dashboard {
public static void main(String[] args){
/* int ticketToProcess=3;
for(int curruntfTicket=1;curruntfTicket<=ticketToProcess;++curruntfTicket){
System.out.println("hi");
}
Scanner x= new Scanner(System.in);
int noOfTicket=3;
int curruntfTicket=1;
while(curruntfTicket<=noOfTicket)
{
//input tickit number
System.out.println("please Enter your ticket number to check status: ");
String ticketNumber = x.nextLine();
// procec
String dummyStatus="pending";
//output2
//System.out.println("the complain status of ticket number: "+ticketNumber+" is "+dummyStatus);
System.out.printf("the complain status of ticket number %s is :%s\n",ticketNumber,dummyStatus);
curruntfTicket++;
}
System.out.println("--------------------");
System.out.println("------end loop-------");
System.out.println("--------------------");
System.out.println("*****");
System.out.println("*****");
System.out.println("*****");
System.out.println("*****");
System.out.println("*****");
System.out.println("=".repeat(50));
System.out.println("#");
System.out.println("##");
System.out.println("###");
System.out.println("####");
System.out.println("#####");
System.out.println("********************");
System.out.println("* *");
System.out.println("* \"Keep Learning\" *");
System.out.println("* *");
System.out.println("********************");
System.out.println("Section 1: Introduction");
System.out.println("--------------------");
System.out.println("Section 2: Methods");
System.out.println("--------------------");
System.out.println("Section 3: Conclusion");
System.out.println("--------------------");
System.out.println("He said, \"Practice makes perfect!\"");
System.out.println("Path:C:\\Users\\Codeline\\IdeaProjects");
System.out.println("*****");
System.out.println("*\t*");
System.out.println("*\t*");
System.out.println("*****");
System.out.println("Teacher: \"What is your name?\" \n Student: \"My name is Alex.\" \n Teacher: \"Welcome, Alex!\"");
System.out.println("===========================");
System.out.println("Mon\tTue\tWed\tThu\tFri\tSat\tSun");
System.out.println("===========================");
System.out.println(" *");
System.out.println(" ***");
System.out.println(" *****");
System.out.println(" *******");
System.out.println("*********");
System.out.println("1\t2");
System.out.println("1\t2\t3");
System.out.println("1\t2\t3\t4");
System.out.println("1\t2\t3\t4\t5");
System.out.println("1\t2\t3\t4\t5\t6")
System.out.println("Name \t Age \t Grade");
System.out.println("John \t 20 \t A");
System.out.println("Sarah \t 22 \t B");
System.out.println("The article states: \"The programmer said, \"Code is poetry,\" and smiled.\"");
System.out.println("*========================================\n" +
"\tSTORE RECEIPT\n" +
"========================================\n" +
"Item\t\tPrice\n" +
"----------------------------------------\n" +
"Apple\t\t$1.50\n" +
"Banana\t\t$0.75\n" +
"Orange\t\t$2.00\n" +
"----------------------------------------\n" +
"Total:\t\t$4.25\n" +
"========================================");
System.out.println("C:\\Users\\Codeline\\IdeaProjects\\CustomerComplainMgmt");
System.out.println("Welcome to Java Programming\n Learn, Practice, Succeed\n Happy Coding!");
System.out.println("Root\\\n \tDocuments\\\n\t\tresume.pdf\n\t\tletter.doc\n\tPhotos\\\n\t\tvacation.jpg");
System.out.println(" *\n" + " **\n" + " ***\n" + " ****\n" +"*****");
System.out.println("========================================");
System.out.println("\tMULTIPLICATION TABLE");
System.out.println("========================================");
System.out.println("1\t2\t3\t4\t5\t6\t7\t8\t9\t10");
System.out.println("----------------------------------------");*/
Scanner inputBuff= new Scanner(System.in);
ArrayList<String> customerFeedbacks= new ArrayList<>();
int currentFeedbackCount=0;
boolean mainRunning=true;
// for (int currentFeedbackIndex=0;currentFeedbackIndex<customerFeedbacks.length;currentFeedbackIndex++)
// {
// customerFeedbacks[currentFeedbackIndex]="";
// }
while (mainRunning)
{
System.out.print("enter [1] for feedback & [2] for dashboard & [3] shutdown:");
int userChoice=Integer.parseInt(inputBuff.nextLine());
if(userChoice==1)
{
System.out.print("please enter your comment: ");
customerFeedbacks.add(inputBuff.nextLine());
} else if (userChoice==2) {
System.out.println("I have selectd \"2\"");
System.out.print("please Enter your pin:");
int adminPin =Integer.parseInt(inputBuff.nextLine());
if(adminPin==242)
{
for(String currentFeedback:customerFeedbacks )
{
System.out.printf("the feed back is: \"%s%n\" ",currentFeedback);
}
}
else
{
System.out.println("Admin Pin Not correct");
}
} else if (userChoice==3) {
System.out.println("i have selected 3");
mainRunning= false;
}
else {
System.out.println("wrong!!");
}
}
}
}