Docsity

Assignment Solution for CS101 - Spring 2012, Exercises of Introduction to Computing

Toggle sidebar
bg1
Assignment No. 03 Solution
Semester: Spring 2012
Introduction to Computing-CS101
Total Marks: 15
Due Date: 18-06-2012
Objective: To understand the mathematical and logical functions using MS Excel and Control
Structures in JavaScript
Lectures Covered: 22 to 25
Instructions:
Please read the following instructions carefully before solving & submitting assignment:
o Assignment should be done by your own efforts not copied from net, handouts or books.
o You should submit your MS Word File via assignment interface at VULMS.
o Assignment sent via Email will not be replied and accepted/graded in any case.
o The assignment submitted after due date will not be accepted/graded.
o If the submitted assignment does not open or file is corrupt then it will not be accepted/graded.
o If the Stud ent ID is not mentioned in the assignme nt file the n the assi gnment will not be
accepted/graded.
GOOD LUCK
Question 1 [2 marks for each formula, if range is not given inside the formula then
zero marks, 5 * 2 = 10 marks]
Suppose following is a work sheet of MS Excel.
docsity.com
pf3

Partial preview of the text

Download Assignment Solution for CS101 - Spring 2012 and more Exercises Introduction to Computing in PDF only on Docsity!

Assignment No. 03 Solution Semester: Spring 2012 Introduction to Computing-CS

Total Marks: 15

Due Date: 18-06-

Objective: To understand the mathematical and logical functions using MS Excel and Control Structures in JavaScript

Lectures Covered: 22 to 25

Instructions:

Please read the following instructions carefully before solving & submitting assignment:

o Assignment should be done by your own efforts not copied from net, handouts or books. o You should submit your MS Word File via assignment interface at VULMS. o Assignment sent via Email will not be replied and accepted/graded in any case. o The assignment submitted after due date will not be accepted/graded. o If the submitted assignment does not open or file is corrupt then it will not be accepted/graded. o If the Stud ent ID is not mentioned in the assignme nt file the n the assi gnment will not accepted/graded.

GOOD LUCK

Question 1 [2 marks for each formula, if range is not given inside the formula then

zero marks, 5 * 2 = 10 marks]

Suppose following is a work sheet of MS Excel.

Apply the appropriate formulas in MS Excel to find the output of the below mentioned requirements:

  1. Sum of Marks of all subjects
  2. Average of all Marks
  3. Highest Marks attained
  4. Total number of subjects having Grade A
  5. Sum of Marks of those subjects having Grade B

Solution:

  1. = SUM(B6:B15)
  2. = AVERAGE(B6:B15)
  3. = MAX(B6:B15)
  4. = COUNTIF(C6:C15, “A”)
  5. = SUMIF(C6:C15, “B” , B6:B15)

Question No. 2 : [5 marks for javascript code, if html tags are missing then no deduction

of marks]

Write JavaScript code using “For loop” to display all the odd numbers between 1 and 100 (both inclusive). Each number should be displayed on a separate line as follows:

1 3 5 7 9 11 13 . . . . . 93 95 97 99 100

Solution:

The odd numbers between 1 and 100 are

**