Array and Strings – Algebra – Problem #4
IIT Kharagpur CS10001 / CS11001 Programming and Data Structures Lab Question Archive
Problem Statement
Write a C program to read the roll number (integer), age (integer) and marks of 20 students admitted to a department. Generate random roll numbers in the range [1000,2000], age in the range [15 to 25] and marks in the range [0,100] and populate the respective arrays.. Please use three one dimensional arrays for storing roll number, age, and mark. a. Display the roll number, ages, and marks of all students having the same age. b. Display the roll number, ages, and marks of all students having identical marks. C. Sort the students according to their roll numbers and display the details nicely formatted. For parts a,b,c make 3 seperate programs.