Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Write an array of 10 students in the collage. Write two functions; one for input, second for output and determine following in main() (a) write a program to print names of all students who joined in a particular year. (b) Write a program to print the data of a student whose roll number is given assignment
Write a program to find the maximum difference between two adjacent numbers in an array of positive integers
Implement a program to read a set of integers into a file and find odd and even numbers and store into separate files. Note: Data.txt Even.txt Odd.txt
Runtime input :
1
2
3
4
5
6
7
8
9
10
-1
Output :
1 3 5 7 9
2 4 6 8 10
given an input string Ayodhya your C program to count the number of vowels and consonants and print the frequency of occurrence of each vowel and consonant delete the vowels in the same input string and display the updated string
Sample input:
Enter the input string: Ayodhya
Sample output:
No of vowels:3
Frequency of occurrence:A-2;o-1
No of consonants:4
Frequency of occurrence:y-2;d-1;h-1
write a C program to convert the string "CEASER " to "HJFXJW "without using inbuilt function
given a matrix of size m×n with values ranges from 100 to 150 . write a C program to generate
0-1 Matrix based on threshold value of 125 . If the matrix element is greater than the threshold set the element to 1 else set the element to 0. print the input Matrix and generate the 0-1 Matrix (use function with 2D array and threshold as arguments)
Sample input:
Input matrix: 120 117 136
110 150 128
135 114 149
Sample output:
0 0 1
0 1 1
1 0 1
determine the cumulative sum of n floating point numbers read a new number into the computer during each call to recursive function
Sample input:
n=3
Enter the number:0.8
Enter the number:0.1
Enter the number:0.2
Sample output:
Cumulative sum=1.1