HELPPPP... my friend and i have been trying to work this out for ages!!!
What is output by the following algorithm?
notice = “Please do not walk on the grass”
start = pos (notice, “ “)
end = pos (notice, “t”)
x = substring (0, start, notice)
stringLength = len(notice)
y = substring (end + 2, stringLength – 1, notice)
print (“x = ” x) x = n
print (“y = “, y) y =
print (x + y)