HTML 网页,按照题目内容,编写1个HTML网页。详细在图里,求HTML、CSS 和 JavaScript代码,急用
(如图所示,内容以英文为准。图1-3是任务内容,图4-5是任务内容的中文翻译)Task1:Createawebpagenamedcompound-interest.htm...
(如图所示,内容以英文为准。图1-3是任务内容,图4-5是任务内容的中文翻译)Task 1:Create a web page named compound-interest.html that calculates the compound interest based on the given initial deposit, annual interest rate, and years to grow. For example, given the initial deposit (often referred as the “principal”) of $1000 and the interest rate of 10%, the interest earned in the first year is $1000*10%=$100, and the ending value is $1000+$100=$1100. In the second year, the interest earned will be $1100*10%=$110, and the ending value becomes $1100+$110=$1210. The layout of the page is:(图)Here are some requirements:1. Use a loop to show the results in a table, including year, starting value, interest earned and ending value2. Add value check for three input boxes, e.g., non-negativity3. Show both of your name and student id in the page4. Try to use jQuery for page interaction, and use separated CSS and JavaScript documents, namely compound-interest.css and compound-interest.js.5. Add these documents in your local web server and request this page by entering a valid URL Hints:(1) The parseFloat() method converts a string to a float number.
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询