我想知道是否有任何网站可以让老师输入HTML代码,然后让学生访问以进行作业,其中每个值的每个值都不相同?对于一个学生来说,资产为500万美元,而对于另一个学生,则为1000万美元。大多数变量是随机生成的,而有些则基于其他变量的公式。
请在下面找到我的HTML代码以及变量定义。
这是给我妈妈的-她正在教会计,但是学校不允许学生购买Wiley或Pearson之类的在线课程。
<div class="narrative">
<p>Little Books Inc. recently reported $
<alg:value>ni</alg:value> million of net income. Its EBIT was $
<alg:value>ebit</alg:value> million, and its tax rate was
<alg:value>t</alg:value>%. What was its interest expense? [Hint: Write out the headings for an income statement and then fill in the known values. Then divide $
<alg:value>ni</alg:value> million net income by (1 - T) =
<alg:value>t1</alg:value> to find the pretax income. The difference between EBIT and taxable income must be the interest expense. Use this same procedure to complete similar Problems.] Write out your answer completely. For example, 25 million should be entered as 25,000,000. Round your answer to the nearest dollar, if necessary.
</p>
</div>
我的变量:
var ni=integer(1,15);
var k=real(1.4,2.5,0.1);
var ebit=k*ni;
var t=integer(30,40,5);
var t1=1-0.01*t;
var ans=round((ebit-ni/t1)*100000000)/100;
lim ans>0;
lim ans = (ebit-ni/t1)*1000000;
# algorithm for feedback;
var NI1=ni*10^6;
var EBIT1=ebit*10^6;
var EBT=NI1/t1;
var Interest=EBIT1 - EBT;
var Tax=EBT*t/100;
var NI2=EBT- Tax;