VISUAL FOXPRO数据库应用试题解答?
kuaidi.ping-jia.net 作者:佚名 更新日期:2024-09-11
数据库试题答案是什么?
(2)125
2.
clear
set talk off
input "a=" to a
input "b=" to b
input "c=" to c
if a<b then
t=a
a=b
b=t
endif
if a<c then
t=a
a=c
c=t
endif
print "三个数中最大数为:",a
set talk on
return
3.
m=100
4.
clear
set talk off
input "请输入任一个整数:" to x
if mod(x,2)=0
print x,"是偶数"
else
print x,"是奇数"
endif
set talk on
return
5.
clear
input "x=" to x
if x>0
y=x*1.5
else
if x=0
y=x
else
y=x*3
endif
endif
print "y=",y
cancel
6.
clear
s=0
n=0
use zg
do while not eof()
if zc="教授"
s=s+sfgz
n=n+1
endif
skip
enddo
?"所有教授的平均工资为: ",s/n
use
return
1.(1)98
(2)125
2.
clear
set
talk
off
input
"a="
to
a
input
"b="
to
b
input
"c="
to
c
if
a<b
then
t=a
a=b
b=t
endif
if
a<c
then
t=a
a=c
c=t
endif
print
"三个数中最大数为:",a
set
talk
on
return
3.
m=100
4.
clear
set
talk
off
input
"请输入任一个整数:"
to
x
if
mod(x,2)=0
print
x,"是偶数"
else
print
x,"是奇数"
endif
set
talk
on
return
5.
clear
input
"x="
to
x
if
x>0
y=x*1.5
else
if
x=0
y=x
else
y=x*3
endif
endif
print
"y=",y
cancel
6.
clear
s=0
n=0
use
zg
do
while
not
eof()
if
zc="教授"
s=s+sfgz
n=n+1
endif
skip
enddo
?"所有教授的平均工资为:
",s/n
use
return
ACADCBBCBDCCD
你这要累蒙人啊,那题目打在上面你也吧容易啊
感觉有3个题不确定,希望能帮助你
1. A
2. C
3. C
4. B
5. D
6. C
7. A
8. B
9. B
10. D
11. D
12. B
13. D
14. A
15. B
16. B
17. D
18. A
(2)125
2.
clear
set talk off
input "a=" to a
input "b=" to b
input "c=" to c
if a<b then
t=a
a=b
b=t
endif
if a<c then
t=a
a=c
c=t
endif
print "三个数中最大数为:",a
set talk on
return
3.
m=100
4.
clear
set talk off
input "请输入任一个整数:" to x
if mod(x,2)=0
print x,"是偶数"
else
print x,"是奇数"
endif
set talk on
return
5.
clear
input "x=" to x
if x>0
y=x*1.5
else
if x=0
y=x
else
y=x*3
endif
endif
print "y=",y
cancel
6.
clear
s=0
n=0
use zg
do while not eof()
if zc="教授"
s=s+sfgz
n=n+1
endif
skip
enddo
?"所有教授的平均工资为: ",s/n
use
return
1.(1)98
(2)125
2.
clear
set
talk
off
input
"a="
to
a
input
"b="
to
b
input
"c="
to
c
if
a<b
then
t=a
a=b
b=t
endif
if
a<c
then
t=a
a=c
c=t
endif
"三个数中最大数为:",a
set
talk
on
return
3.
m=100
4.
clear
set
talk
off
input
"请输入任一个整数:"
to
x
if
mod(x,2)=0
x,"是偶数"
else
x,"是奇数"
endif
set
talk
on
return
5.
clear
input
"x="
to
x
if
x>0
y=x*1.5
else
if
x=0
y=x
else
y=x*3
endif
endif
"y=",y
cancel
6.
clear
s=0
n=0
use
zg
do
while
not
eof()
if
zc="教授"
s=s+sfgz
n=n+1
endif
skip
enddo
?"所有教授的平均工资为:
",s/n
use
return