首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读以下应用说明及Visual Basic程序代码,将应填入(n)处的字句写在对应栏内。 【应用说明9】 本应用程序的运行窗口如图4.2所示。 窗口中的3个文本框和两个按钮名称分别为Txt-salary、Txt_base、Txt_
阅读以下应用说明及Visual Basic程序代码,将应填入(n)处的字句写在对应栏内。 【应用说明9】 本应用程序的运行窗口如图4.2所示。 窗口中的3个文本框和两个按钮名称分别为Txt-salary、Txt_base、Txt_
admin
2009-05-15
47
问题
阅读以下应用说明及Visual Basic程序代码,将应填入(n)处的字句写在对应栏内。
【应用说明9】
本应用程序的运行窗口如图4.2所示。
窗口中的3个文本框和两个按钮名称分别为Txt-salary、Txt_base、Txt_tax、Cmd_compute和 Cmd_quit。运行时,文本框Txt_base中存放的是免税金额基数(应扣除的基本费用)。当用户在文本框Txt_salary中输入月收入(工资或薪金)并单击“计算”按钮Cmd_compute后,Txt_tax框中就显示计算所得的应纳税额。文本框Txt_base和Txt_tax在运行时不接受用户输入,Txt_base的内容以灰色显示。
个人工资(或薪金)所得税是按照超额累进的税率来征收的,方法是:以每月收入总额减去免税金额基数后的余额作为该月的月应纳税所得额,再将应纳税所得额按相应级数采用相应的税率进行累进计算。目前的免税金额基数为800元,税率如表4.2所示。
设一个人的月应纳税所得额为K(元),用下面的公式计算其应缴纳的个人所得税额S(元);
若0<K≤500,则S=K×5%;
若500<K≤2000,则S=500×5%+(K-500)×10%;
若2000<K≤5000,则S=500×5%+1500×10%+(K-2000)×15%;
若5000<K≤20 000,则S=500×5%+1500×10%+3000×15%+(K-5900)×20%;
例如,某人某月工资总额为5200元,减去800元后,应纳税所得额为4400元,其应缴纳的个人所得税额为500*5%+1500*10%+2400*15%=535元。
在开发过程中,需要编写的程序代码如下:
【程序代码9】
Option Base 0
Private Sub Cmd_compute_Click()
Dim paylevel,taxPrate
paylevel = Array(0,500,2000,5000,20000,40000,60000,80000,100000,1000001)
taxPrate = Array(5,10,15,20,25,30,35,40,45)
K= Val(Txt_salary.Text)-Val(Txt_base.Text)
S=0
If (1) Then
For j=1 To 9
If (2) Then
S = S+(paylevel(j)-paylevel(j-1))*taxPrate(j-1)/100
Else
S=S+K-paylevel(j-1)* (3)
Exit For
End If
Next j
Ent If
Txt_tax.Text=(4)
End Sub
Private Sub Cmd_quit_Click()
End
End Sub
Private Sub Form_Load()
Txt_tax.Text=" "
Txt_salary.Text=" "
Txt_base.Text=800
Txt_tax.Locked=True
Txt_base.Enabled=(5)
End Sub
选项
答案
(4)Str $(S)
解析
此处输出计算的结果,所以应填入Str $(S)。
转载请注明原文地址:https://kaotiyun.com/show/KfjZ777K
本试题收录于:
程序员上午基础知识考试题库软考初级分类
0
程序员上午基础知识考试
软考初级
相关试题推荐
阅读以下说明,回答问题1至问题5,将解答填入解答栏内。[说明]图4-1是某企业网络拓扑结构。防火墙的规则配置如表4-1所示,请解释该配置的含义。请说明表4-3中的规则应该插入到表4-2中的何处才能生效。
The standard(67)in C language contain many useful functions for input and output, string handling, mathematical computations, an
The Programming languages are designed to(74)the communication between human and computers.
Without systems software, application software in a computer is(73)
There are several applications called Web(69)that make it easy to access the World Wide Web, two of the most popular being Netsc
An application software is any program(68)to perform a specific function directly for the user or, in some cases, for another ap
Computer hardware engineers research, design, develop, and test computer hardware and supervise its manufacture and(72). Hardwar
The major goal of USB was to define an external expansion bus which makes adding(70)to a PC as easy as hooking up a telephone to
By using(26), a 600M -byte music CD can be compressed to 50M bytes or less. It can be streamed(downloaded in chunks) so that you
随机试题
完带汤主治证候所涉及的脏腑是
酶催化反应不具备的特点是
A、氯霉素B、红霉素C、四环素D、喹诺酮类E、链霉素伤寒的首选药物
下更关于显示器的说法错误的是()。
下列不是流转税的是( )。
厌恶风险的投资者偏好确定的股利收益,而不愿将收益留存在公司内部去承担未来的投资风险,因此公司采用高股利政策有利于提升公司价值。这种观点的理论依据是()。
我国特别行政区拥有()。
【《徐霞客游记》】陕西师范大学2015年历史地理学真题
The________crownjewelsarekeptintheTowerofLondon.
A、ThePolishpeoplecannowspendtheirleisuretimeinvariousways.B、ThePolishpeoplearefondofwalkingleisurelyinthec
最新回复
(
0
)