Check exist: If list of
cutio
exists an item containing the textields and, show the
error text "Execution existed!". (1.0 point)
When input string str and integer n
After clicking the "SUB FIRST" button
Enter a string (str): FPT University
Enter a string (str): FPT University
Enter an integer (n): 2
Enter an integer (n): 2
Result:
Result:
SUB FIRST
SUB FIRST
Execution existed!
=>
List of Executions:
String str
Index n Result
List of Executions:
FPT University 2
FPT
String str
Index
FPT University 2
n Result
FPT
Zoom
Otherwise, make the request b.
b. Execute: Cut string str from position 0 to position n, output to the result textfield, then add the result to "List of Executions" as shown below. (1.5 point)
When input string str and integer n
After clicking the "SUB FIRST" button
Enter a string (str): Computing Fundamental
Enter a string (str): Computing Fundamental
Enter an integer (n): 8
Enter an integer (n): 8
Result:
Result:
Computing
SUB FIRST
SUB FIRST
+ 100%
Close