凡科小程序提供源码吗

凡科小程序提供源码吗,第1张

可以。凡科建站是一站式网站建设平台,平台上主要上架一些用户自己开发的小程序供其他用户下载,截止2022年11月3日,用户是可以在该网站下载其他用户上传的小程序的源代码的。源代码(Sourcecode),也称源程序,是指一系列人类可读的计算机语言指令。

Q5Actionjsp

<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<%

String cashAmount = requestgetParameter("cashamount");

String taxAmount = "";

if (cashAmount != null && cashAmountlength() > 0) {

int cash = IntegerparseInt(cashAmount);

if (cash > 0 && cash <= 10000) {

taxAmount += cash 00205;

} else if (cash > 10000 && cash <= 30000) {

taxAmount += cash 00215;

} else if (cash > 30000) {

taxAmount += cash 00250;

}

}

%>

<html>

<head>

<title>ST8016 Assignment Q5</title>

<script type="text/javascript">

function verify() {

regExp = /\d+\b/;

if (!(regExptest(thisFormcashamountvalue))) {

alert("You must enter valid amount!");

return false;}

return true;

}

</script>

</head>

<body>

<h1>Assignment 1 - Question 5</h1>

<b>Tax Calculation</b>

<br /><br />

<table border="1" cellpadding="3">

<tr bgcolor="#EEEEEE"><td align="center">Amount</td><td align="center">Tax Rate %</td></tr>

<tr><td align="center">1 - 10,000 </td><td align="center">205 % (00205)</td></tr>

<tr><td align="center">10,001 - 30,000 </td><td align="center">215 % (00215)</td></tr>

<tr><td align="center">> 30,000 </td><td align="center">250 % (00250)</td></tr>

</table>

<form name="thisForm" action="Q5Actionjsp" method=”post”

onsubmit="return verify();">

Amount: <input name=cashamount size=10 value="<%=cashAmount%>"/> <br/><br/>

<input type=submit value="Calculate Tax Amount"/>

</form>

<% if (taxAmountlength() > 0) {%>

<p>Tax Amount: <b><%=taxAmount%></b></p>

<% }%>

</body>

</html>

以上就是关于凡科小程序提供源码吗全部的内容,包括:凡科小程序提供源码吗、JSP做一个计算小程序,求最后一个语句!已有源代码和成品图片!就差最后那个结果的语句了。真心求解急用。、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zz/9687580.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-30
下一篇2023-04-30

发表评论

登录后才能评论

评论列表(0条)

    保存