Escolar Documentos
Profissional Documentos
Cultura Documentos
Assignment # 3
Question # 1:
Answer:
(a) Slide one containing my Bio Data:
Bio Data
Name: Nadia Rehmatullah
Father Name: Rehmatullah
Martial Status: Female
Nationality: Pakistani
SubjectsAt TheMoment:
Bachelors (B.Com):
Semester# 1:
Introduc
duction To
Computing.
Financial Accounting.
Business Mathematics
& statistics.
English Comprehension.
Pakistan Studies.
Islamicstudies.
Question # 1:
Find the value of the solid generated when the region between the graph of,
1
∫0 π 2 + x2 2 − [ x] 2dx And g(x) = x
2
Answer:
Over the interval [0, 2] is revolved about the x-axis.
Solution:
∫ π { [ f ( x)] 2 − [ g ( x)] 2} dx
b
V= a
∫ π { [ f ( x)] 2 − [ g ( x)] 2} dx
b
V= a
1 2
π + x 2 − [ x ] dx
2
= ∫ 0
2
1
2 2
= ∫ π + x 4 − x 2 − ( x ) dx
0
4
1
2
= ∫
0
π + x 4 dx
4
4
2 1
= π ∫0 + x dx
4
2
x x5 2
= π ∫0 +
4 5 0
x x5 0 0
2
= π ∫0 + − +
4 5 4 4
2 1 32
= π ∫0 + −0
2 5
2 5 + 64
= π ∫0 −0
10
2 5 + 64
= π ∫0
10
69π
= Ans
10
Question No: 2
Read the following chunk of code and answer at the end in precise manner; for your
verification you may add some necessary Tags so that code can be executed on your side.
We require only stated justification in the given format at end.
…………………………………………..
…………………………………………..
…………………………………………….
<SCRIPT>
function AnonymousCheck() {
if((document.Myform.a.value == 'CS101'||document.Myform.a.value == 'cs101')&&
(document.Myform.pass.value == '101'||document.Myform.pass.value =='vu'))
{
window.alert(" You are allowed to take paper." ) ;
document.form1.a.onBlur();
}
else
{ window.alert(" You are not allowed to take paper." ) ;
document.form1.a.OnBlur();
}
}
function AnonymousCheck1() {
if(document.Myform.a.value == ''||document.Myform.a.value != 'cs101'||
document.Myform.a.value != 'CS101'
||document.Myform.pass.value =='')
{
window.alert("Please check entered course is irrelevant or Password field is empty" ) ;
document.form1.a.onBlur();
}}
</SCRIPT>
……………………………
…………………………..
<FORM name="Myform" method="post" action="">
<TABLE border="1">
<TR> <TD>Paper</TD>
<TD><INPUT type="text" name="a" onBlur="AnonymousCheck1 ()">
</TD></TR><TR> <TD>Password</TD>
<TD><INPUT type="password" name="pass"onBlur="AnonymousCheck()"></TD>
</TR><TR> <TD><INPUT type="reset" name = "Reset" value="Reset"></TD>
<TD><INPUT type="submit" name = "ok" value="Verify" ></TD></TR>
</TABLE>
</FORM>
Answer:
Solution: