Wednesday, March 12, 2014

Tech fair project using VB Script

i actually made simple software which using for capture the screen shot, but i lost my USB so suddenly i change my project to programming application using vbscript. VB script is one of the form of programming using notepad so it is really easy to programming  and it doesn't take time to make application.  and i choose to make calculator because it is useful at some point. this is my script of calculator using VB script.

dim num1
dim num2
dim equ

num1 = inputbox("Enter First Number")
equ = inputbox("Enter Equation Sign Eample: (/ * - +)")
num2 = inputbox("Enter Second Number")

if equ = "/" then msgbox(num1 / num2)
if equ = "*" then msgbox(num1 * num2)
if equ = "-" then msgbox(num1 - num2)
if equ = "+" then msgbox(num1 -- num2)

you just copy and paste to note pad and change file name as a (something).vbs

i think later on, i going to post my code of software because it little bit takes time to make it.

my work:




Notepad CODE


No comments:

Post a Comment