vb编程 程序功能:在文本框中输入某科目所需试验2种器材数量和单价,计算购买这些起草所需的费用
展开全部
Dim Amount1 as integer
Dim Amount2 as integer
Dim Price1 as double
DIm Price2 as double
Amout1 = cint(textbox1.value)
Amout2 = cint(textbox2.value)
Price1 = cdbl(textbox3.value)
Price2 = cdbl(textbox4.value)
Dim TotalValue as double
TotalValue = Amount1 * Price1 + Amount2 * Price2
Dim Amount2 as integer
Dim Price1 as double
DIm Price2 as double
Amout1 = cint(textbox1.value)
Amout2 = cint(textbox2.value)
Price1 = cdbl(textbox3.value)
Price2 = cdbl(textbox4.value)
Dim TotalValue as double
TotalValue = Amount1 * Price1 + Amount2 * Price2
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询