0% found this document useful (0 votes)
21 views

FOP Practical Schedule 2024 RKS V1

Uploaded by

meetdoshi82
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

FOP Practical Schedule 2024 RKS V1

Uploaded by

meetdoshi82
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

LOK JAGRUTI KENDRAUNIVERSITY (LJKU)

LJ SCHOOL OF COMPUTER APLLICATIONS


Master of Science (Information Technology) Integrated –Semester–I
Course Code: 150021113 Teaching Scheme
Lecture Tutorial Practical Total
Course Name: Problem Solving using C Language (P) Credit
(L) (T) (P) Hours
Category of Course: Core Subject
0 0 4 2 36
Prerequisite Course:

Course Outcome
To be able to develop logic, flowcharts, pseudocode and algorithm to solve problem through programming. To learn about the data types,
1.
operators and functions in C programming language. (UNIT - 1)
To be able to write code in C programming language for a variety of problems. Understanding a functional hierarchical code organization. (UNIT
2. - 2)
Ability to define and manage data structures based on problem subject domain. Ability to work with textual information, characters and strings.
3. (UNIT - 3)
4. Ability to work with arrays of complex objects.(UNIT - 4)
Understanding a concept of object thinking within the framework of functional model. Understanding a defensive programming concept. Ability
5.
to handle possible errors during program execution (UNIT - 5)

Practical Day wise Schedule


Uni
Teaching
t Topic
Hours
No.
Introduction to programming
1. Prepare a flowchart and algorithm to print output for addition of two input numbers.
2. Prepare a flowchart and algorithm to print output for subtraction and multiplication of two input
numbers.
3. Prepare a flowchart and algorithm to convert Celsius into Fahrenheit. (F = 1.8*C + 32)
1. 4. Prepare a flowchart and algorithm to checks if an input number is odd or even.
5. Program to print "HELLO FRIENDS"(Using printf() function)
6. Write a C program to print student’s information like Name, Address, Mobile Number, email in separate ---
line.
6. Write a C program to print student information in the center of screen using various design pattern with
help of backslash character (“\n”, “\t”)
2. 8. Write a C program to print any multiplication table using escape sequence. 6
01
9. Write a C Program to create variable using built in datatype (int, float, char, long, short, double) and (10%)
3. assign and print the value of each variable.
10. Write a program to calculate area of circle.(pi*r*r)
11. Write a program to find area of a rectangle.(Area=l*b)
12. Write a program to find volume of cube.(Area=l*b*h)
4. 13. Write a program to find area of triangle.(Area=(l*b)/2)
14. Write a program in C to calculate simple interest using formula I = (PRN) / 100.
15. Write a program in C to convert the given temperature from Fahrenheit to Celsius using the formula C = (F
– 32) / 1.8
16. Write a C program to obtain an hourly pay rate and the number of hours worked by workers. Calculate
5. their pay for the week.
C Programming Basics
17. Write a C program to find quotient and remainder.
18. Write a C program to read the distance between two cities in KM. and print thatdistance in
meters, feet, inches and centimeters.
6. 19. Write a C program to read two integer numbers and swap them using third variable.
20. Write a C program to read two integer numbers and swap them without using third variable.
02 21. Write a C program to read the distance between two cities in KM. and print that distance in
meters, feet, inches and centimeters.
7. 22. Write a C program to read marks and print percentage and division. 7
(20%)
8. 23. Write a C program to demonstrate arithmetic operator.
9. 24. Write a C program to demonstrate bitwise operator.
10. 25. Write a C program to demonstrate increment decrement operator.
11. 26. Write a C program to demonstrate sizeof data type in C.
27. Write a C program to demonstrate type casting.
28. Write a C program to take the values from user and evaluate the following expression:
x = a + b % c / d % e * f – g;
12. 29. Evaluate the following expression: x = a * (b % c ) / d; ( for e.g. x = 7 * (6 % 15)/9)
Control Statements
6
03 30. Write a program to Find out Maximum number among two number. --- (15%)
13. 31. Write a program to read three subject marks and find out whether student is pass or fail. ---
32. Write a program to read two city’s distance from one common source city and print which city is near
from the source city.
33. Write a program to Find out given year which is leap or not.
34. Write a program to Check whether given number is positive, negative or zero.
14. 35. Write a program to read three student’s age and print who is younger one.
36. Write a program to read marks from keyboard and your program should displayequivalent grade
according following table
(if-else if ladder)
==================
Marks Grade
==================
80-100 Distinction
60-79 First Class
35-59 Second class
a. Fail
37. Write a C program to check whether input alphabet is a vowel or not.
38. Write a C Program to read the age of three persons from the keyboard and find out maximum age
out of three (using nested if)
39. Write a C program for calculator with basic operations (+,-,*, /). User needs to provide two numbers and
an operator from above list. Program should print the values inserted along with its answer. Use the switch
statement for the same. If user inserts wrong choice, program should print the appropriate message.
Demo:
Enter Number 1: 3
Enter Number 2: 5
Enter Operation (+,-,*,/) : +
Number 1 is : 3
Number 2 is : 5
15. Answer (+) is : 8
40. Write a program in C to display a sum of first N even numbers.
41. Write a program in C to display your name with ASCII code.
42. Write a program in C to find out factorial of a given number.
16. (Hint : Factorial of number 5 is shown as 5! It can be counted as 5!= 5X4X3X2X1)
43. Write a program to print fibbonacci series upto n.(Hint : Input N=10 Output is 1 1 2 3 5 8
44. Write a program to check whether the given number is prime or not.
45. Write a program to find reverse of a given number. Take number as 4-digit number.
17. (Hint : If the number is 4532 then your answer must be 2354)
46. Write a program in C to display a sum of even numbers up to N with while and do while loop. Take N
from the user. If user gives 10 as input, then sum=2+4+6+8+10.
47. Find out the sum of the following series : 12 +22 +32 +42 …... up to nth terms . If user enters n=5 then it
will do the sum of 12 +22 +32 +42+52 .
48. Write a program in C to print all the numbers and sum of all the integers that are greater than 100 and
less than 200 and are divisible by 7. Modify the above program so that it takes starting and ending limits
18. from the user.
49. Write a C program to design the following pattern:
*
* *
* * *
* * * *
50. Write a C program to design the following pattern:
1
1 2
1 2 3
1 2 3 4
51. Write a C program to design the following pattern:
5
5 4
5 4 3
5 4 3 2
52. Write a C program to design the following pattern :-

A
AB
ABC
ABCD
ABCDE
19.
53. What will the output of following program. Justify your answer with proper reason.
#include<stdio.h>
void main()
{
printf(“number=%3d\n”, 10);
printf(“number=%2d\n”, 10);
printf(“number=%1d\n”, 10);
printf(“number=%7.2f\n”, 5.4321);
20. printf(“number=%.2f\n”, 5.4391);
printf(“number=%.9f\n”, 5.4321);
}
54. What will the output of following program. Justify your answer with proper reason.
#include <stdio.h>
void main()
{
printf(“%s”,“hello”);
printf(“\n%3s”,“hello”);
printf(“\n%10s”,“hello”);
printf(“\n%-10s”,“hello”);
printf(“\n%10.3s”,“hello”);
}
55. Write a program to find out and print all prime numbers lying between 1 to 200.
56. To check whether the giver number is palindrome or not.
21. 57. Write a program to Check whether number is Armstrong or not.
58. Write a program to find greatest common divisor [GCD] for two positive integer
59. Write a program to accept numbers from the user till their sum exceeds 50.
22. 60. Print first 50 odd numbers. Note that program should display only five numbers per line.

Arrays & strings


23 One-dimensional Array. How arrays are stored, Initialization
Examples of Single dimensional arrays in functions.
61. Write a Program in C to print sum of any 10 numbers using 1-D array. ---
62. Write a program in C to enter marks of 10 students and print their marks. Find highest marks. (Hint : Use ---
array)
24
63. Create an array (marks) of 10 elements. Assign initial value between 0 to 100 to each element. Write a
code to perform summation of array elements of given range. User will give the range.
For example:
Enter Starting range (0 is first element) : 3
Enter Ending range (9 is the last element) : 6
64. Write a program to perform bubble sort using 1-D Array of 6 elements. Initialize each element withvalue
between 0 to 100. (Hint: Bubble Sort is the sorting algorithm that works by repeatedly swapping the
adjacent elements if they are in wrong order.)
25 10
04 65. Write a program which takes one string from the user and copy its content to the second string using (25%)
library function of string.h library file. Display the content of the second string.
66. Write a program which takes two strings from the user and concatenate first string content to the
second string using library function of string.h library file. Display the content of the second string.
67. Write a program which takes one string from the user and find its length. using library function of
26 string.h library file. Display the content of the input string.
68. Write a program which takes two strings from the user and compare its content to the third string using
library function of string.h library file. Display the content of the third string.
69. Write a program which takes one string from the user and display the content of the string in reverse
order.
For example :
Enter the string : LJMCA
Reverse string : ACMJL
70. Write a program to check whether the given string is palindrome or not? A string is said to be
palindrome if reverse of the string is same as string.
For example, “abba” is palindrome, but “abbc” is not palindrome. Further abbcbba is also
27 palindrome.
71. Create two arrays named as matrix1 and matrix2 of 3X 3 size each. Initialize each element to 0 to 10
value. Print the content of both the arrays.
72. Perform the matrix addition of the above two matrixes and store the answer in the third 3X3 matrix
28 named as matrix3.
73. Perform the matrix subtraction of the above two matrixes and store the answer in the third 3X3 matrix
named as matrix3.
74. Perform the matrix multiplication of the above two matrixes and store the answer in the third 3X3 matrix
29 named as matrix3.
Functions & Recursion
30 75. Demonstrate category of functions.
76. Write a C program to calculate area of a circle using functions.
31. 77. Write a C program to find greatest of three numbers using function.
78. Write a C program to check whether the given number is perfect or not using function.
Hint: A perfect number is a positive integer that is equal to the sum of its positive divisors, excluding
the number itself. For example, 6 is a positive number that is completely divisible by 1, 2, and 3. When 8
05 we add these divisors (1 + 2 + 3 = 6), it produces 6, which is equal to the number that we have (30%)
32. considered. So, we can say that 6 is a perfect number.
79. Write a program to read an array of 8 integer numbers. Search the number in array and if the number is
found then display "ELEMENT FOUND" or ELEMENT DOES NOT FOUND ". Take this number from the
user. (Using function)
80. Write a C program to perform bubble sort using 1-D Array of 6 elements. Initialize each element with
value between 0 to 100.(using function)
33. Hint: Bubble Sort is the sorting algorithm that works by repeatedly swapping the adjacent elements if
they are in wrong order.)
81. Write a C program to perform bubble sort using 1-D Array of 6 elements. Initialize each element with
value between 0 to 100.(using function)
Hint: Bubble Sort is the sorting algorithm that works by repeatedly swapping the adjacent elements if
they are in wrong order.)
34 82. Write a C program for computing the Fibonacci number sequence using recursion. Take the number of
the terms from the user (must be more than 2).
(Hint : In Fibonacci series, next number is the sum of previous two numbers for example 0, 1, 1, 2, 3, 5,
8, 13, 21 etc. The first two numbers of Fibonacci series are 0 and 1. )
83. Write a C program to find Sum of digits of a number using recursion. Take 4 digit number.
35. Function concepts and practice
36. Function practice

Suggested Reference Books


1 Pradip Dey – Manas Ghosh, Programming in C Second Edition Oxford Publication).
2 ReemaThareja, "Programming in C',2nd Edition, Oxford University Press.
3 Balagurusamy, Programming in ANSI C, Tata McGrew Hill
4 Ashok N Kamthane, Programming with ANSI and Turbo C, Pearson Education
5 Brian W. Kernigham, Dennis Ritchie, “The C Programming Language”, Pearson
6 YeshvantKanetkar, “Let Us C”, BPB Publication
7 M T Savaliya , “Fundamentals of Programming(With C Language)”
Major Components/ Equipment
Sr.
Component/Equipment
No.
1 Computer, Turbo C

List of Open Source Software/Learning website


1 https://www.javatpoint.com
2 https://www.tutorialspoint.com
Theory Assignment
Sr.
Questions Linked with Unit
No.
1. Write a note on Programming Languages.
2. Explain the various symbols used in flowcharts.
3. Write a note on data types in C.
4. Write down the rules for naming the identifiers in C.
5. Explain constants in C.
6. Write a short note on operators available in C.
7. What do you understand by test condition? How to frame a test condition in C.
8. Explain all the format specifiers for giving the output on the screen.
9. Define functions. Explain various categories of functions with appropriate examples.
10. What do you understand by conditional statements? Explain its types in detail.
11. Explain switch statement syntax and rules with appropriate examples.
12. Write a note on nested ifs.
13. Define loops. List out the various categories of loop and explain each in detail with example.
14. What is the difference between while and do while loop.
15. Explain the difference between break and continue.
16. Give the difference between exit controlled and entry controlled loops.
17. Explain what the use of nested loops is?
18. Define Arrays. Explain how Single dimensional array is initialized and accessed.
19. Explain how array is call by reference when used with functions.
20. Write a short note on double dimensional arrays. How it is initialized and how it is accessed.
21. Explain array is by default pass by reference in C.
22. Explain how strings is handled using arrays.
23. Write a short note on string functions.
24. What do you understand by array of strings and explain it.
25. Write a short note on storage classes.
26. What do you understand by scope and lifetime of a variable?
27. Define recursion and explain how it’s executed.
28. Write a note on types of recursion.

You might also like