THAKRAL COLLEGE OF TECHNOLOGY, BHOPAL



XYZ COLLEGE NAME

BHOPAL

DEPARTMENT OF

LAB MANUAL

Program : Master of Computer Application

Semester : First Semester

Course Code : MCA 103

Subject Name : Programming and problem solving in C

Prepared By:

(Lecturer)

Xyz College name

BHOPAL

DEPARTMENT OF MCA

LAB MANUAL

Program : Master of Computer Application

Semester : First Semester

Course Code : MCA 103

Subject Name : programming and problem solving in C

Prepared By:

XYZ (Lecturer)

CONTENTS

1. SYLLABUS

2. LIST OF BOOKS

3. TIME TABLE

4. PRACTICAL LIST

5. VIVA QUESSTION

6. ATTENDANCE SHEET

7. GRADING SHEET

8. LAB MANUAL

SYLLABUS

|Course No. |Course Name |L Hrs |T |

| | | |Hrs |

|1 |Gottfried |Problem Solving in C |Schaum Series |

|2 |Kanetkar |Pointer In C |BPB |

|3 |Kanetkar |Let us C |BPB |

|4 |Schildt |C: The Complete reference |4th ed TMH |

|5 |Kerninghan & Ritchie |The C programming language |PHI |

XYZ COLLEGE, BHOPAL

DEPARTMENT OF MCA

LAB ASSIGNMENTS NO 1,2

Branch/Semester: MCA-I Session: July-December,2008

Subject: Programming & Problem Solving in C Subject Code: MCA 106

Name : _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Roll No._ _ _ _ _ _ _ _ _ _

|S. No. |Topics |Questions |Remark |Signature |

|1. |1.Input/ |To calculate simple interest. | | |

|2. |output statements |To print the table of given number. | | |

|3. | |To program of Prime number. | | |

|4. |2. Control |To print Fibonacci series. | | |

|5. |statements |To find LCM of 2 numbers. | | |

|6. | |To find the sum of 2 matrix. | | |

|7. | |To convert lower case to upper case. | | |

|8. | |To print number in reverse order. | | |

|9. | |To generate the following series | | |

| | |S= 1+ x/ 1! + x2 / 2! -------xn/n! | | |

|10. | |To check whether number is Armstrong. | | |

| | |To convert binary number into decimal number. | | |

| | |To use switch case statement into two number and then program following function : | | |

| | |1. Addition 2. Substration 3. Division 4. Multiplication | | |

|1. |1. Array |To calculate factorial using function. | | |

|2. | |To fall a string using function. | | |

|3. |2. Functions |To sort 10 numbers using array & function | | |

|4. |call by value |To find the sum of two matrix using function. | | |

|5. | |To print greatest and smallest number in array. | | |

| |3. Recursion |To print this pyramid using function. | | |

|6. | |1 | | |

| | |212 | | |

| | |32123 | | |

| | |To sum of even number between 1 to 100. | | |

|7. | |To swap two values using call by reference. | | |

|8. | |To calculate sum of series using recursion. | | |

|9. | |To perform the matrix multiplication. | | |

|10. | |To convert square matrix into unit matrix. | | |

| | |To perform transpose of given square matrix. | | |

| | |To perform row sum and column sum of matrix. | | |

| | |To perform one function is called by another function. | | |

XYZ COLLEGE, BHOPAL

DEPARTMENT OF MCA

LAB ASSIGNMENTS NO - 3

Branch/Semester: MCA-I Session: July-December,xyz

Subject: Programming & Problem Solving in C Subject Code: MCA 106

Name : _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Roll No._ _ _ _ _ _ _ _ _ _

|S. No. |Topics |Questions |Remark |Signature |

|1. |Break; |Write a Program to demonstrate the use of break, continue and goto label . | | |

| |Continue; | | | |

| |Goto; |Write a program using pointer to read a one dimensional array with 10 numbers and display | | |

|2. |Pointer |them. | | |

| |Structure | | | |

| |Union |Write a program to read a line of lower case text character by keyboard and store it in char| | |

|3. | |array .Now convert this line of text into upper case letters. | | |

| | | | | |

| | |Write a program to sort the array of strings. & | | |

| | |Write a program to calculate the length of string without using strlen function. | | |

|4. | | | | |

| | |Write a program to copy the contents of one string into another without using library | | |

| | |function. | | |

| | | | | |

|5. | |Use structure to store data about 10 books . In your program data about book entails book | | |

| | |title ,price and number of copies of the book after reading the data about books ,your | | |

| | |program should display the data of all the books which cost more than rs 200. | | |

|6. | | | | |

| | |Write a C program that reads several different records. Each record is a collection of roll | | |

| | |number and marks. Your program should rearrange in the descending order of marks and hence | | |

| | |show the merit list. | | |

| | | | | |

| | |Write a program using pointers to read an array of integer and print its element in reverse | | |

|7. | |order of index. | | |

| | | | | |

| | |To compute the sum and multiplication of two complex numbers (by passing a structure to a | | |

| | |function). | | |

| | | | | |

|8. | |Write a program to find the number of times that a given word(i.e. a short string) occurs in| | |

| | |a sentence (i.e. a long string!). Read data from standard input. The first line is a single | | |

| | |word, which is followed by general text on the second line. Read both up to a newline | | |

|9. | |character, and insert a terminating null before processing. | | |

| | |Typical output should be: | | |

| | |The word is "the". | | |

|10. | |The sentence is "the cat sat on the mat". | | |

| | |The word occurs 2 times. | | |

XYZ COLLEGE, BHOPAL

DEPARTMENT OF MCA

LAB ASSIGNMENTS NO - 3

Branch/Semester: MCA-I Session: July-December,2008

Subject: Programming & Problem Solving in C Subject Code: MCA 106

Name : _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Roll No._ _ _ _ _ _ _ _ _ _

|S. No. |Topics |Questions |Remark |Signature |

|1. |Break; |Write a Program to demonstrate the use of break, continue and goto label . | | |

| |Continue; | | | |

| |Goto; |Write a program using pointer to read a one dimensional array with 10 numbers and| | |

|2. |Pointer |display them. | | |

| |Structure | | | |

| |Union |Write a program to read a line of lower case text character by keyboard and store| | |

|3. | |it in char array .Now convert this line of text into upper case letters. | | |

| | | | | |

| | |Write a program to sort the array of strings. & | | |

| | |Write a program to calculate the length of string without using strlen function. | | |

|4. | | | | |

| | |Write a program to copy the contents of one string into another without using | | |

| | |library function. | | |

| | | | | |

|5. | |Use structure to store data about 10 books . In your program data about book | | |

| | |entails book title ,price and number of copies of the book after reading the | | |

| | |data about books ,your program should display the data of all the books which | | |

|6. | |cost more than rs 200. | | |

| | | | | |

| | |Write a C program that reads several different records. Each record is a | | |

| | |collection of roll number and marks. Your program should rearrange in the | | |

| | |descending order of marks and hence show the merit list. | | |

| | | | | |

|7. | |Write a program using pointers to read an array of integer and print its element | | |

| | |in reverse order of index. | | |

| | | | | |

| | |To compute the sum and multiplication of two complex numbers (by passing a | | |

| | |structure to a function). | | |

|8. | | | | |

| | |Write a program to find the number of times that a given word(i.e. a short | | |

| | |string) occurs in a sentence (i.e. a long string!). Read data from standard | | |

|9. | |input. The first line is a single word, which is followed by general text on the | | |

| | |second line. Read both up to a newline character, and insert a terminating null | | |

| | |before processing. | | |

|10. | |Typical output should be: | | |

| | |The word is "the". | | |

| | |The sentence is "the cat sat on the mat". | | |

| | |The word occurs 2 times. | | |

-----------------------

Approved By:

(HOD)

Approved By:

XYZ

(HOD)

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download