You are on page 1of 2

A team of experts formed by Govt.

of India conducted a survey on colleges


in India. Let us assume that the survey was conducted in ‘n’ number of
institutes. The experts were asked to rank the institutes based on three
different metrics. The metrics are facilities, academics and infrastructure.
Maximum score in each category is as follows.

Facilities = 25

Academics = 50

Infrastructure = 25

At the end of the survey the scores of the individual metrics are added up to
get the total score and the institutes are ranked based on the total score.
Write a program to read the scores of the three metrics for each institute,
store the scores in a single list. Make a list of total scores for all the
institutes and display the same.

Input format:

First line contains the number of institutes

Next line contains the scores for Facilities of Institute 1

Next line contains the scores for Academics of Institute 1

Next line contains the scores for Infrastructure of Institute 1

Next line contains the scores for Facilities of Institute 2

Next line contains the scores for Academics of Institute 2

Next line contains the scores for Infrastructure of Institute 2

--

---
Next line contains the scores for Facilities of Institute n

Next line contains the scores for Academics of Institute n

Next line contains the scores for Infrastructure of Institute n

You might also like