DEVI AHILYA VISHWAVIDYALAYA (DAVV), INDORE
Bachelor Of Computer Applications (BCA) (Full-Time)
First-1st-I Semester Curriculum/ Syllabus 2011-12 Academic Year Onwards
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
- Write a C program to display "Hello Computer" on the screen.
- Write a C program to display Your Name, Address and City in different lines.
- Write a C program to find the area of a circle using the formula: Area = PI * r2
- 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.
- Write a C program to print the multiply value of two accepted numbers.
- Write a C program to convert centigrade into Fahrenheit. Formula: C= (F-32)/1.8.
- 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
- 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.
- Write a C program to find out whether the character presses through the keyboard is a digit or not (using conditional operator).
- Write a C program to swap variable values of i and j.
- To sum n difference number using array.
- To generates Fibonacci series.
- 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 !+…………
- Find the factorial of given number using for loop
- Find whether given year is leap or not.
- Write a C program to find the maximum from given three nos.
- Write a C program to find that the accepted no is Negative, Positive or Zero.
- 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.
- Write a C program that prints the given three integers in ascending order using if – else.
- 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”.
- Write a C program for calculator designing using switch /case loop?
- Write a C program to convert decimal to binary.
- Write a C program to convert decimal to octal.
- Write a C program to convert decimal to hexadecimal.
- Write a C program to find the sum of first 100 natural nos.
- Write a C program to find the sum of first 100 odd nos. and even nos.
- Write a C program to display first 25 Fibonacci nos.
- Write a C program to display first 100 prime nos.
- Write a C program to find factorial of accepted nos.
- Write a C program to find the sum of digits of accepted no.
- Write a C program to print the accepted no and its reverse no.
- Write a C program to print all the Factors of accepted no.
- Write a C program to find HCF of two given numbers.
- Write a C program to find all the prime number between two given numbers.
- 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
- Write a C program to print the sum of series.(will be given in class)
- 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
|
- Write a C program to find minimum, maximum, sum and average of the given one dimensional array.
- Write a C program to perform the basic Matrix operations addition, subtraction, multiplication, Transpose.
- Write a program to take a sentence as input and reverse every word of the sentence.
- 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
- 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