Thursday, July 4, 2019

Basic Math Operations in ASP

Here is a sample program that I wrote using ASP classic to perform basic math operations.

A basic program to add the sum of two numbers using classic ASP (Active Server Pages) it uses VBScript as its native language.


I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com




Sample Program Output


Program Listing

math.htm

<!DOCTYPE html>
<html>
<style>
body {
 font-family:arial;
 size:12px;
}
</style>
<body>
<h2>Basic Math Operations in ASP </h2>
<form name="sending" method="GET" action="results.asp" target="_self">
    </FONT><font size="2">Give First Value </font><br>
    <input name="val1" size="10">
    <br><br>
    </FONT><font size="2">Give Second Value </font> <br>
    <input name="val2" size="10">
        <br> <br>
    <input type="submit" value="Send" name="Send">
</form>
</body>
</html>
</body>

results.asp


<%
    'Written By Mr. Jake R. Pomperada,MAED-IT
'Date : July 4, 2019
' Bacolod City
    a = Request.querystring("val1")
    b = Request.querystring("val2")
sum     = cint(a) + cint(b)
product = cint(a) * cint(b)
diff = cint(a) - cint(b)
quo= cint(a) - cint(b)
response.write("<h3> DISPLAY RESULTS </h3>")
response.write("<h3>The sum of " & a  & " and " & b & " is " & sum &".</h3>")
response.write("<h3>The difference between " & a  & " and " & b & " is " & diff &".</h3>")
response.write("<h3>The product of " & a  & " and " & b & " is " & product &".</h3>")
response.write("<h3>The quotient between " & a  & " and " & b & " is " & quo &".</h3>")
%>



No comments:

Post a Comment