Monday 22 July 2013

Programming & Problem solving through C -I [BCA -107] Syllabus BCA 1st-I Sem Syllabus for DAVV Indore Affiliated Institutions

 DEVI AHILYA VISHWAVIDYALAYA (DAVV), INDORE
Bachelor Of Computer Applications (BCA) (Full-Time) 
First-1st-I Semester Curriculum/ Syllabus 2011-12 Academic Year Onwards
Programming & Problem solving through C -I Syllabus 
 
 
Programming & Problem solving through C -I –LABORATORY [BCA – 107] Syllabus /Course contents

List of practical

  1. Write a C program to display "Hello Computer" on the screen.
  2. Write a C program to display Your Name, Address and City in different lines.
  3. Write a C program to find the area of a circle using the formula: Area = PI * r2
  4. Write a C program to find the area and volume of sphere. Formulas are: Area = 4*PI*R*R Volume = 4/3*PI*R*R*R.
  5. Write a C program to print the multiply value of two accepted numbers.
  6. Write a C program to convert centigrade into Fahrenheit. Formula: C= (F-32)/1.8.
  7. Write a C program to read in a three digit number produce following output (assuming that the input is 347)
a.       3 hundreds
b.      4 tens
c.       7 units
  1. Write a C program to read in two integers and display one as a percentage of the other. Typically your output should look like20 is 50.00% of 40 assuming that the input numbers where 20 and 40. Display the percentage correct to 2 decimal places.
  2. Write a C program to find out whether the character presses through the keyboard is a digit or not (using conditional operator).
  3. Write a C program to swap variable values of i and j.
  4. To sum n difference number using array.
  5. To generates Fibonacci series.
  6. Find the sum of series.
                                                                                i.            1+2+……………
                                                                              ii.            2+4+……………
                                                                            iii.            1+3+……………
                                                                            iv.            1+2/2!+3/3!+……
                                                                              v.            1+x/1!+x2 /2!+x3/3 !+…………
                                                                            vi.            1-x/1!+x2 /2!-x3/3 !+…………
  1. Find the factorial of given number using for loop
  2. Find whether given year is leap or not.
  3. Write a C program to find the maximum from given three nos.
  4. Write a C program to find that the accepted no is Negative, Positive or Zero.
  5. Write a program which reads two integer values. If the first is lesser print the message up. If the second is lesser, print the message down if they are equal, print the message equal if there is an error reading the data, print a message containing the word Error.
  6. Write a C program that prints the given three integers in ascending order using if – else.
  7. Given as input three integers representing a date as day, month, year, print the number day, month and year for the next day's date. Typical input: “28 2 1992” Typical output: “Date following 28:02:1992 is 29:02:1992”.
  8. Write a C program for calculator designing using switch /case loop?
  9. Write a C program to convert decimal to binary.
  10. Write a C program to convert decimal to octal.
  11. Write a C program to convert decimal to hexadecimal.
  12. Write a C program to find the sum of first 100 natural nos.
  13. Write a C program to find the sum of first 100 odd nos. and even nos.
  14. Write a C program to display first 25 Fibonacci nos.
  15. Write a C program to display first 100 prime nos.
  16. Write a C program to find factorial of accepted nos.
  17. Write a C program to find the sum of digits of accepted no.
  18. Write a C program to print the accepted no and its reverse no.
  19. Write a C program to print all the Factors of accepted no.
  20. Write a C program to find HCF of two given numbers.
  21. Write a C program to find all the prime number between two given numbers.
  22. Write C programs to print the terms of each of the following series: i. Sin(x)ii. Cos(x)iii. Log (1+x) iv. log(1-x) v. exvi. e-x
  23. Write a C program to print the sum of series.(will be given in class)
  24. Display the following output on screen (assuming the value for input parameter n=5) :
a)      
*
**
***
****
*****
b)       
1
12
123
1234
12345

c)
A
AB
ABC
ABCD
ABCDE
d)
1
23
345
4567
56789

e)
1
23
456
78910
101112131415
f)
*****
****
***
**
*
g)
ABCDE
ABCD
ABC
AB
A
h)
*
***
*****
*******
*********

1
123
12345
1234567
123456789

1
121
12321
1234321
123454321

*
**
***
****
*****

ABCDE
ABCD
ABC
AB
A

1
12
123
1234
12345

*****
0000
***
00
*

1
10
101
1010
10101

1
01
101
0101
10101

1
22
333
4444
55555

A
AB
ABC
AB
A

ABCDEDCBA
ABCD  DCBA
ABCCBA
AB BA
A A


1
121
12321
1234321
123454321
  1. Write a C program to find minimum, maximum, sum and average of the given one dimensional array.
  2. Write a C program to perform the basic Matrix operations addition, subtraction, multiplication, Transpose.
  3. Write a program to take a sentence as input and reverse every word of the sentence.
  4. Write a C Function for the following task
a.       Calculating Factorial
b.      Find value of a given Fibonacci term
c.       Swapping the values of two variable
d.      Minimum/maximum value from the given input
  1. Write User Defined Function and test them in the main program for the following standard function
a.       int myatoi(Char *s)
b.      char *myitoa(int i)
c.       int mystrlen(char *s)
d.      char *mysubstr(char *s, int i, int j)
e.       char *mystrcat(char *s1,char *s2)
f.       int mystrcmp(char *s1, char *s2)
g.      int mystrchr(char *s, char c, int i)
h.      char *mystrrev(char *s)
i.        int mystrend(char *s, char *t)
j.        char *myreplace(char *s, char *old, char *new)
k.      int abs(int i)
l.        char *mytoupper(char *)
m.    char *mytolower(char*)
n.      int isupper(char *s)
o.      int islower(char *s)
p.      int mypower(int a, int b)
q.     int mymod (int a, int b)

No comments:

Post a Comment