Sie sind auf Seite 1von 6

Introduction to Computing (CS 101)

Assignment # 3

Question # 1:

In a Microsoft Word document insert the following objects:


1. Power Point File
2. Math equations and Formulae using Microsoft equation facility or math
type software.
3. Add Question1and Question2 as book marks in your assignment and
add hyperlinks to move to Question 1 and Question 2 within file.

Develop a presentation in Microsoft Power Point.


Presentation should include two slides containing your bio data on first slide and
detail of your subjects currently enrolled in this semester on second slide.

Answer:
(a) Slide one containing my Bio Data:

Bio Data
Name: Nadia Rehmatullah
Father Name: Rehmatullah
Martial Status: Female
Nationality: Pakistani

F.Sc (Pre-Medical) From NSC


Currently Enrolled In B.Com(Bachlors)
From VU
Semester 1
Address: Muhalla Ameer Park Kachi Futto
Mund Raja Chowk ST # 5 7 8 Near
Munneb General Store Gujranwala.
(b) Detail of your subjects currently enrolled in this semester on second slide:

SubjectsAt TheMoment:
Bachelors (B.Com):
Semester# 1:
 Introduc
duction To
Computing.
 Financial Accounting.
 Business Mathematics
& statistics.
 English Comprehension.
 Pakistan Studies.
 Islamicstudies.

Constraints for Math Object


Develop the math equations using the word object facility.

Question # 1:

Find the value of the solid generated when the region between the graph of,
 1  
∫0 π  2 + x2 2 − [ x] 2dx 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

The volume is,

∫ π { [ 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:

Statements What Answer Column


Required
If(document.Myform.a.value == What “a” is the name of the text
'CS101 AND <INPUT type="text" change will field of interface of the
name="a" … occur if we webpage, if we alter it to “ab”
alter than we cannot get the data
name=”a” to from the interface, and there
name =”ab” will be not any function call,
when we hit “Verify”.
if((document.Myform.a.value == When the When user enter “CS101” or
'CS101'||document.Myform.a.value statement will “cs101” in paper field and
== 'cs101')&& become true. ‘101’ or ‘vu’ in password
(document.Myform.pass.value == field
'101'||document.Myform.pass.value
=='vu'))

function AnonymousCheck1() When this This will execute when user


function will enter field input other than
be executed ‘CS101’, ‘cs101’ and
‘101’,’vu’
onBlur="AnonymousCheck() What is onBlur call the function as
onBlur role the user input the data to the
here? field through interface.
Over all theme of the code This is the small web page
with script handling on the
field to collect the correct
data.

Das könnte Ihnen auch gefallen