0% found this document useful (0 votes)
13 views2 pages

Government Enginnering College, Valsad: List of Practicals

Discrimination is the process of making unfair or prejudicial distinctions between people based on the groups, classes, or other categories to which they belong or are perceived to belong,[1] such as race, gender, age, species, religion, physical attractiveness or sexual orientation.[2] Discrimination typically leads to groups being unfairly treated on the basis of perceived statuses

Uploaded by

patelridham2007
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)
13 views2 pages

Government Enginnering College, Valsad: List of Practicals

Discrimination is the process of making unfair or prejudicial distinctions between people based on the groups, classes, or other categories to which they belong or are perceived to belong,[1] such as race, gender, age, species, religion, physical attractiveness or sexual orientation.[2] Discrimination typically leads to groups being unfairly treated on the basis of perceived statuses

Uploaded by

patelridham2007
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/ 2

GOVERNMENT ENGINNERING COLLEGE, VALSAD

MECHANICAL ENGINEERING DEPARTMENT


PROGRAMMING FOR PROBLEM SOLVING (3110003)
MECHANICAL _2ND SEMESTER Division - A & B

LIST OF PRACTICALS
PRACTICAL-SET-1
1. Write a program to print "HELLO FRIENDS".
2. Write a program that reads two nos. from key board and gives their addition, subtraction,
multiplication, division and modulo.
3. Write a program to convert days into months and days.
4. Write a program to calculate simple interest (i = (p*r*n)/100 )
i = Simple interest ,p = Principal amount,r = Rate of interest,n = Number of years.
5. Write a program to solve quadratic equation.
6. Write a C program to enter a distance in to kilometre and
convert it in to meter, feet, inches and centimetre.

PRACTICAL-SET-2
1. Write a C program to find that the accepted number is negative, or positive or zero.
2. Write a program to read marks of a student from keyboard whether the student is pass or
fail.(using if else).
3. Write a program to read three numbers from keyboard and find out maximum out of these
three. (nested if else)
PRACTICAL-SET-3
1. Write a C program to find out the Maximum and Minimum number from given 10
numbers.

2. Write a program to display multiplication table.


3. Write a program to print 1+1/2+1/3+1/4+………+1/N series.
4. Write a program to find sum of all integers greater than 100 & less than 200 and are divisible
by 5.
5. Write a C program to find factorial of a given number.
6. Write a program to reverse a number.
PRACTICAL-SET-4
1. Program to print Patterns.
a) * b) AAAAA
* * BBBB
* * * CCC
* * * * DD
E
c) 12345 d) 1
2345 0 1
345 1 0 1
45 0 1 0 1
5
PRACTICAL-SET-5
1. Add, subtract and multiply two nos. using switch statement.
2. Write a program to read marks from keyboard and your program should display equivalent
grade according to following table (if else ladder)
Marks Grade
100 – 80 / Distinction
79 - 60 / First Class
59 - 40 / Second Class
< 40 / Fail

PRACTICAL-SET-6
1. Write a C program to read and store the roll no and marks of 20 students using array.
2. Write a program to find out which number is even or odd from list of 10 numbers using array
3. Write a program to find maximum element from 1-Dimensional array.

PRACTICAL-SET-7
1. Write a program to replace a character in given string.
2. Find length of string using strlen( ) function.
3. Find given string is palingrom or not using string library function.
4. Write a program to count total words in text.

PRACTICAL-SET-8
1. Write a program to read structure elements from keyboard.
2. Write a program to find factorial of a number using recursion.
3. Write a function Exchange to interchange the values of two variables, say x and y. illustrate the
use of this function in a calling function.
4. Write a function in the program to return 1 if number is prime otherwise return 0.
5. Design a structure student_record to contain name, branch and total marks obtained. develop
a program to read data for 10 students in a class and print them.

PRACTICAL-SET-9
1. Write a program to print address of variable using pointer.
2. Write a program using pointer and function to determine the length of string.
3. Write a program for sorting using pointer.

PRACTICAL-SET-10
1. Write a C program to swap the two values using pointers.
2. Write a program using pointer to copy one string to another string.
3. Write a program to access elements using pointer.

You might also like