PRJ301_-_PE_-_SU_2024_2157.webp
H

PRJ301_-_PE_-_SU_2024_2157.webp

COUNT
List of Executions:Array Option Result
Assume users fill the value for an integer array into the textfield, each element is separated by a comma "," (called a), when users click "COUNT" button:
a. Check exist: If list of execution exists an item containing the array textfield and option, show the error text "Execution existed!". (1.0 point)
When input array and choose an option
After clicking the "COUNT" button
Enter an integer array: 1,2,3,4
Enter an integer array: 1,2,3,4
Choose an option:Odd Even
Choose an option:Odd Even
Result:
COUNT
Result:
COUNT
Execution existed!
=>
Zoom
List of Executions:
Array Option Result
List of Executions:
1,2,3,4 odd
2
Array Option Result
1,2,3,4 even 2
1,2,3,4 odd 2
Otherwise, make the request b.
1,2,3,4 even 2
b. Execute: (1.5 point)

- If users choose "Odd" option, count the number of elements in the array that are odd integer
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRJ301
Thêm bởi
happy_smile1
Ngày thêm
Lượt xem
7,352
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRJ301_-_PE_-_SU_2024_2157.webp
File size
167.7 KB
Dimensions
1920px x 859px

Share this media

Back
Bên trên Bottom