Você está na página 1de 4

Details of Assignment

Week 1:
4. Open the vi editor in a terminal and print Hello World using C Language. 5. Write a program to convert a giving temperature from centigrade to Fahrenheit and viceversa. 6. Write a C program to check whether a given number is even or odd. 7. Write a program to calculate a student grade on basic of given data a. >=90 grade A b. >=70 to <90 grade B c. >=60 to <70 grade C d. <=60 grade P. the number of the student will be given by the user. 8. Print the maximum among three integers read from the user. 9. Write a program to swap the value of two variables with & without using 3rd variable.

Week 2:
1. Write a C program to check if a string is palindrome or not. 2. Write a C program to check whether a year is leap year or not. 3. Find out the prime numbers between two positive integers. The positive integers from the user. 4. input). a) 1 1 1 1 2 1 1 3 3 1 . b) a a a a a b c d e d c b b c d d c b b c c b b b a a a a a Write a program which displays the following: (where number of lines (n) is should be read

Week 3:
1. input). Write a program which displays the following : (where number of lines (n) is a) * *** ***** ******* b) 1 12 11 10 2 13 16 9 3 14 15 8 4 5 6 7

c) Compute A ^ 5. where the value of A will given by the user. 2. user. 1, 1, 2, 3, 5, 8, 13...........n. Write a C program to generate Fibonacci number series up to a given range by

Week 4:
1.Write a C program to find the sum of series -1 +2/2! -3/3! +4/4! .....n term using loop. 2. Go on reading integers from the user and print them into binary as long as the user wants. 3. Write a program that for all positive integers i, j, k and l from 1 through 1000, finds and prints all combinations of i,j,k and l such that i+j+k=l and i<j<k<l .

Week 5:
1. Write a C program that first reads, row by row, an nXn two dimensional array, where n is an input parameter. The program should then determine whether the array just read falls into any of the following special classes. 1. Symmetric Aij = Aji for all i,j 2. Upper Triangular Aij = 0 whenever i < j

3. Diagonal Aij = 0 whenever i <> j 2. Write a C program that first read n numbers into an array find out the largest integer. 3. Write a C program to do the following operation on matrix a. To multiply a matrix.

Week 6:
1. Let A0 + A1*X^1 + A2*X^2 + A3*X^3 + ..... An*X^n is a polynomial where Ai is the coefficient of the term X to the power n. Let these co-efficients are stored in an array. Evaluate the polynomial for different values of X. 2. Write C functions that support the main program to check the usage of the functions. a) to accept an integer as parameter and return 'yes' if the integer is prime and 'no' otherwise. b) to accept an integer as parameter and return factorial of the integer.

Week 7:
1. Write recursive functions in C for factorial. 2. Write two user defined function which will generate LCM and HCF of N integers. The value of N will be given by the user.

Week 8:
1. Write a complete C program that reads a sentence from the user and will compute how many lines and words are there in the sentence. ( Hint : assume that a sentence will always end with a stop (.) and words will always be seperated by one or more number of spaces )

Week 9:
10. Write a program to create a text file and to store text into that file.

11. Write a program to read a text file and display the contents of the file on screen. 12. Write a program to create a data file and to store record into that file. 13. Write a program to read a data file and display the contents of the file on screen.

Week 10: project work.

Você também pode gostar