程序改错题:表XSDA.DBF结构为:学号(C,6),姓名(C,6),性别(C,2),入学成绩(N,6,2)。本程序实现按学号查找记录,直到输入”#”为止。******FOUND******的下一行有错误,请将完整的正确答案填写在题目下面相应空白处。SET TALK OFFUSE XSDA**********FOUND**********ACCEPT “请输入要查找的学号” ON XHDO WHILE XH!= “#”**********FOUND**********LOCATE FOR 学号=”CJ”IF FOUND( )?学号,姓名ELSE? “无此学号”ENDIFACCEPT “请继续输入要查找的学号” TO XH**********FOUND**********ENDFOR?”谢谢使用本查找系统”USESET TALK ON
题目:键盘输入X值时,求其相应的Y值* ┌ -1 (X<0)* │* Y=├ 0 (X=0)* │* └ 1 (X>0)SET TALK OFF**********FOUND**********ACCEPT “请输入一个数:” TO X**********FOUND**********DO WHILECASE X<0Y=-1CASE X=0Y=0**********FOUND**********DEFAULT X>0Y=1ENDCASE? YSET TALK OFF
题目:下面是计算1+1+2+2+…+n+n之和的平方根的程序。SET TALK OFFINPUT TO N***********SPACE**********【?】FOR I=1 TO N***********SPACE**********S=【?】ENDFOR***********SPACE**********?"结果是",【?】RETURNSET TALK ON
题目: 下面是计算2+4+6+…+100之和的程序。SET TALK OFF***********SPACE**********【?】***********SPACE**********FOR I=2 TO 100 【?】S=S+IENDFOR***********SPACE**********?"结果=",【?】RETURN