algoExcelAssignment

Embed Size (px)

Citation preview

  • 8/3/2019 algoExcelAssignment

    1/2

    Algorithms

    Excel Assignment

    Solve the following questions using Excel

    1.

    (A) Generate a Worksheet having the following columns for rows 1 to 1000.

    Sl No; Cumulative Sum of Serial Number; cos(Sl No); cos(Sl No) rounded to 5 decimalplaces; square of Sl no; difference between cos and Square rows as a percentage; A random

    number + p; Cumulative PRODUCT of random number+ p.

    (B) Below these columns, the sheet should have Average and Standard deviation for

    each of their columns. Write the average and standard deviation with

    a) relative andb) absolute references.

    Copy both the relative and absolute values to some other cell and demonstrate that absolute

    value does not change but relative value changes.

    (C) Specify a value less than 100 in a cell say D4.If the standard deviation is greater

    than a percentage of mean that is specified in the cell D4, then ?ash both std deviation and mean

    to red (color).

    (D) Plot using X-axis versus Y-axis in a NEW SHEET

    a) Sl No (X-axis) versus Cumulative Sum of Serial Number (Y-axis)

    b) Sl No (X-axis) versus of cos(Sl No) (Y-axis);

    c) cos of (Sl No) (X-axis) versus difference between cos and Square rows as apercentage(Y-axis)

    d) Difference between cos and Square rows as a percentage (X-axis) versus Cumulative

    PRODUCT of Random number + p (Y-axis)

    The worksheet should have headings for each column, coloured in specific colour. Use

    colors also to distinguish the columns for easy readability. ALL graphs have to have X labels,Y Labels and Titles.

    2. Create a NEW worksheet in EXCEL, having links to the first, and duplicating the data.Demonstrate that if we change the values in the first sheet, those in the second change.

    3. Create a NEW worksheet in EXCEL, by pasting values Demonstrate that if we changethe values in the first sheet, those in the second DO NOT change.

    4. Find NPK (permutations) for all values of N varying from 1 to 1000, K varying from 1to 1000. A 2-D 1000*1000table should be created.

  • 8/3/2019 algoExcelAssignment

    2/2

    Where possible put in exact integer value. Where not, approximate it in scientificnotation. If the numbers are not possible to represent exactly, use a logarithmic representation.

    The cells formulae have to be written correctly - use Fact(N) = N*Fact(N-1) if Fact doesnot overflow, else use Log(Fact(N)) = Log(N) + Log(Fact(N-1)) etc.

    5. Fill in a new array 1000*1000 which checks if NPK is greater than any value which theuser may specify in a SEPARATE worksheet called DATA in cell C6 (use links). If so,

    output 1, else 0.

    6. Count the number of number of 1s in the new array and put in the the worksheet DATAin cell C7.

    7. In an experiment with 80 independent trials, the probability of success on each trial is0.4.What is the probability of exactly 25 trials being successful. Solve using excel sheet.

    8. Create a 10 by 3 array in a new excel sheet. Fill column 1 with serial nos 1 to 10 andenter any values in the other two columns. In another sheet display the values of column

    2 and 3 corresponding to serial no 7.