-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlab2_output.txt
105 lines (89 loc) · 2.37 KB
/
lab2_output.txt
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
1 -
Create a Sequence
-------------------------
Exception - no data was created
1 - 100,400,200,700,500
Create a Sequence
-------------------------
The sequence: 100.0 400.0 200.0 700.0 500.0
Number of Elements: 5
The current element: 100.0
2 - 400
Delete a Number
-------------------------
The sequence: 100.0 200.0 700.0 500.0
Number of Elements: 4
The current element: 200.0
4 - 3,700
Add a number before another number
-------------------------
The sequence: 100.0 200.0 700.0 700.0 500.0
Number of Elements: 5
The current element: 700.0
5 - 5,200
Add a number after a number
-------------------------
The sequence: 100.0 200.0 700.0 700.0 500.0 200.0
Number of Elements: 6
The current element: 200.0
3
Delete the first number from the sequence
-------------------------
The sequence: 200.0 700.0 700.0 500.0 200.0
Number of Elements: 5
The current element: 200.0
6 - 25
Add a number to the end of the sequence
-------------------------
The sequence: 200.0 700.0 700.0 500.0 200.0 25.0
Number of Elements: 6
The current element: 25.0
7 - 3
Display a number at a certain index
-------------------------
The sequence: 200.0 700.0 700.0 500.0 200.0 25.0
Number of Elements: 6
The current element: 700.0
8
Display the last element in the sequence
-------------------------
The sequence: 200.0 700.0 700.0 500.0 200.0 25.0
Number of Elements: 6
The current element: 25.0
1 - 10,20,30
Create a Sequence
-------------------------
The sequence: 10.0 20.0 30.0
Number of Elements: 3
The current element: 10.0
10
Append another sequence to the first sequence
-------------------------
The sequence: 200.0 700.0 700.0 500.0 200.0 25.0 10.0 20.0 30.0
Number of Elements: 9
The current element: 30.0
11
Create a clone sequence
-------------------------
The sequence: 200.0 700.0 700.0 500.0 200.0 25.0 10.0 20.0 30.0
Number of Elements: 9
The current element: 30.0
9 - 700, 7
Replace a number with another number
-------------------------
The sequence: 200.0 7.0 700.0 500.0 200.0 25.0 10.0 20.0 30.0
Number of Elements: 9
The current element: 700.0
12 - 1
Print the sequence
-------------------------
The sequence: 200.0 7.0 700.0 500.0 200.0 25.0 10.0 20.0 30.0
Number of Elements: 9
The current element: 700.0
12 - 2
Print the sequence
-------------------------
The sequence: 200.0 700.0 700.0 500.0 200.0 25.0 10.0 20.0 30.0
Number of Elements: 9
The current element: 30.0
Process finished with exit code 0