留学生代考 ; We consider an array of strings stored in my_data.

; We consider an array of strings stored in my_data.
; Each string ends with a “line feed” character (please search for it in the ASCII table online)
; The end of the whole array is signified by the “NULL” character (also mentioned in the ASCII table)
; Your task: replace all occurrences of “mug” that appear in the middle of a string with “cup”.

Copyright By PowCoder代写 加微信 powcoder

; For example, “My beloved mug”
and “Mug falls on the ground” should not be replaced,
; but “There’s a mug on my desk or
“abcmugcba” should be replaced.
; The search should be case insensitive, meaning that “Mug”, “mUg” and “MUG” should all be replaced with “cup” (lower case)
; The final result must be written back to my _data.
; You should also indicate how many strings does my data contain in R8
; Failing to do so results in mark deduction
; In this current “my data”, it stores the two strings:
; 4d 79 20 62 65 6c 6f 76 65 64 20 6d 75 67 0A 61 62 63 6d 75 67 63 62 61 0A 00
; you program must work for any valid data created
0x4d792062, 0x656c6f76, 0x6564206d, 0x75670A61, 0x62636d75, 0x67636261, 0x0A000000

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com