Vous êtes sur la page 1sur 1

Nihar Ranjan Roy

niharranjanroy@galgotiasuniversity.edu.in

COMPUTER PROGRAMMING & PROBLEM SOLVING (CSE-101)


ASSIGNMENT NO -1
FALL, 2011
1.
2.
3.
4.

Explain the different components of a computer with block diagram.


What is an operating system? What is its work?
What are the different types of Operating systems available in the market today?
Differentiate between
a. Compiler and interpreter
b. Assembler and compiler
5. What do you mean by an algorithm? What are the two criterias on the basis of which an
algorithm is evaluated.
6. Design an algorithm for finding the sum of the square of first n numbers of the series

Where a1=1.and ai+1= ai +2.


7. The harmonic mean defined by H
1

is sometimes used as mean of central tendency. Develop an algorithm to compute the


harmonic mean of n data values.
8. Develop an algorithm to compute the first n (where n>=0) terms of the following series
S=1-3+5-7+9
9. Design an algorithm that converts binary numbers to octal.
10. Write an algorithm to evaluate the following functions to 0.0001% accuracy
3

sin x = X - x + x x

11. Write
a.
b.
c.
d.

+ .......
3! 5! 7!
algorithm, source code in C and flow chart for the following
Fibonacci sequence, upto nth term.
Reversing the digits of an integer
Checking whether the given number is a prime number or not
Finding the sum of the digits of a number.

~~o~~

Vous aimerez peut-être aussi