1、实验六 菜单和函数作业 1 设计你的系统菜单【实验内容与设计思想】请仿照下例制作一个你的系统主菜单“学生选课系统主菜单.MPX”和“ 学生选课系统主菜单.MNX”。【操作步骤提示】*作业 2 表达式 和函数【实验内容与设计思想】一、计算以下表达式的值4%2182 .AND. 3(5=20DaTE()+10二、计算以下函数的值l 算术函数ABS(4-16+7)MOD(10,3)MOD(10,5)ABS(2*35-35*10)MOD(10,-3)MOD(-10,-3)MOD(-10,3)SQRT(16)INT(128.96)MAX(12,25,2)INT(-47.8)MIN(17,7,23)MAX
2、(1976/12/16,1973/12/25)ROUND(129.728,2)ROUND(129.728,1)ROUND(1295.728,-2)ROUND(125.72,2)RAND(3)MIN(1976/12/16,1973/12/25)ROUND(129.728,0) ROUND(129.728,-1)ROUND(-29.28,1)RAND()2、字符函数“LEN(good! )LTRIM(good! )RIGHT(good!,2)LEN(SPAC(10)LEN( 您好!)LTRIM( 您好!)RIGHT(您好!,2)REPL(您好!,5)TRIM(good!)LEFT(good!,2)
3、SUBS(good!,2,2)REPL(good!,5)TRIM( 您好!)LEFT(您好!,2)SUBS(您好!,3,2)REPL(=,5)“3.日期和时间函数“TIME() DATE() YEAR(DATE() YEAR(1997/12/21)MONTH(DATE()MONTH(1997/12/21)DAY(DATE() DAY(1997/12/21)4.转换函数“VAL(128)STR(123.765,4)ASC(a)CHR(92)STR(128,3) STR(129.7,5,1)STR(295.7)STR(123.765,6)ASC(A)ASC(BACK)CHR(65)CHR(7)UPPER(Good) LOWER(GOOD)