PRJ301_-_FA_2024_-_PE_-_s_-_2_2880.webp
Aizawa2004

PRJ301_-_FA_2024_-_PE_-_s_-_2_2880.webp

a. Check exist: If list of execution (table) exists an item containing the str string and option, show the error text "Execution existed!". (1.0 point)
When input string and choose an option
After clicking the "EXECUTE" button
Enter a string (str): Hello
Enter a string (str): Hello
Choose an option: Length of string
Choose an option: Length of string
Result:
Result:
EXECUTE
Result
EXECUTE
Execution existed!
String str
Length of string 5
String str
Option
Result
Hello
Hello
Length of string 5
Option
Otherwise, make the request b.
b. Execute: (1.5 point)
- If users choose "Length of string" option, count the number of characters of the string str, then add the result to table as shown below.
If users choose "Consonant characters" option, count the number of characters that are consonants in string str, then add the result to table as shown below.
=>
Zoom

+ 100%
Close
  • Like
Reactions: meowwwuw
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRJ301_-_FA_2024_-_PE_-_s_-_2_2880.webp
File size
189.6 KB
Dimensions
1920px x 803px

Share this media

Back
Bên trên Bottom