Array and Strings – Algebra – Problem #3
IIT Kharagpur CS10001 / CS11001 Programming and Data Structures Lab Question Archive
Difficulty: medium
Problem Statement
Write a C program to read from keyboard the roll number (unsigned integer) and CGPA (float) of upp to 10 students. User will first enter the number of such students for which inputs will have to be taken (maximum 10). Use two arrays of maximum size of 10 each. a. Display the details read, nicely formatted b. Display the average CGPA of the students. c. Display the roll numbers and CGPA of all students having identical CGPA (for checking equality of CGPA, consider two digit accuracy).