Pages

Thursday 14 June 2012

Cs101 Assignment no 3 Spring 2012 Idea Solution


Question No. 1 :        [ 5 * 2 = 10 marks]

Suppose following is a work sheet of MS Excel.






Apply the appropriate formulas in MS Excel using the same data given in above diagram, to find the result (same as shown in the diagram) of the below mentioned requirements and just write down the formulas in the solution file ( MS word file).

  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




Question No. 2 :        [ 5 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