Posts

Showing posts from October, 2017

PRACTICE PROBLEM 7

PRACTICE PROBLEM 7 Student Data (Id-3146) Given a file named student.txt which has  the information  of the students in a class such as Name, Roll number, Age, CGPA. Write a pseudocode and the subsequent Python program to do the following operations. a) Read the file and  print the contents of the file b) Read the file and sort the contents (records) of the file  in an  increasing order of CGPA and print the content of the sorted file. c) Read the file and print the record of the student with maximum age and minimum age. d) Read the file and print the average CGPA of the class. e) Read the file and print the name of the students whose CGPA is greater than the average CGPA of the class and whose age lies between average age of the class and the minimum age of the students in the class Input Format Read the name of the input file Details of the students with the fields : Name, Rollnumber, Age, CGPA separated by a comma. Inp...