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

CP Model

The document outlines a series of C programming tasks assigned to students based on their roll numbers. Each roll number group is given specific programming challenges, including tasks related to string manipulation, number operations, and data structures. The tasks range from basic operations like checking number properties to more complex problems such as employee data management and matrix multiplication.

Uploaded by

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

CP Model

The document outlines a series of C programming tasks assigned to students based on their roll numbers. Each roll number group is given specific programming challenges, including tasks related to string manipulation, number operations, and data structures. The tasks range from basic operations like checking number properties to more complex problems such as employee data management and matrix multiplication.

Uploaded by

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

Roll No 1,11,21,31,41,51

a) C Program to Check Whether a Number is Positive, Negative, or Zero


b) Write a C program to reverse a string using pointers

c) Write a C program that takes input from the user and counts the number of
uppercase and lowercase letters, as well as the number of other characters.

Roll No 2,12,22,32,42,52
a) C program to find the sum of n numbers using array
b) C Program To Find The Largest of Three numbers

c) Generate the following pattern as below


1
23
456
7 8 9 10

Roll No 3,13,23,33,43,53

a) C Program to print the prime numbers between 10 and 100.( Make use of
break statement)
b) C program to perform binary search

c) Write a Program to Replace all 0’s with 1’s in a Number.

Roll No 4,14,24,34,44,54

a) C program to pint all values between 1 and n except the multiples of 3.(Make
use of continue statements)
b) C Program To Find The Largest of Two Numbers Using Ternary Operator

c) Write a C program to find the majority element in a list of numbers

Roll No 5,15,25,35,45,55

a) C Program to print the n terms in Fibonacci series


b) Write a function to reverse a string and use it to check whether the given
string is palindrome or not.

c) Generate the following pattern as below


1
25
368
4 7 9 10

Roll No 6,16,26,36,46,56

a) Write a C program to find factorial of a number using recursion


b) C program to do matrix multiplication

c) Check Whether or Not the Number is a Strong Number in C Language. A


Number that is equal to the sum of the factorial of it's individual digits is
known as Strong Number.

Roll No 7, 17,27,37,47,57

a) Define a structure to store the information of an employee -employee


code,employee name,salary,dept no, date of joining (it is itself a structure
containing day,month,and year) .Write a C program to store n employees
data and display the details of the employee with maximum salary.

b) Write a program to input a string and return the string by moving all the
occurrences of the letter ‘x’ contained in the string to the end.

Roll No 8,18,28,38,48,58

a) Write a C program using structures to read the record of n students and


display according to the increasing total marks of each student

b) Write a Program to sort First half of an array in Ascending order and the
Second in Descending order

Roll No 9,19,29,39,49,59

a) C Program to display number of days in a month when month number


is entered using switch case.
b) C Program To Find The Largest of Two Numbers Using Ternary
Operator
c) Write a c program to find the sum of Odd digits using while loop in a
Given range.

Input:
10
20
Output:
75

Roll No 10,20,30,40,50,60

a) Write a program to copy one existing file into another named file
b) C Program to Check Whether a Number is Positive, Negative, or Zero
c) Write a C program to find the majority element in a list of numbers

You might also like