Dr. Jalote and Dr. Raghava are working on some inter-institute projects. They need some interns from outside IIIT-D. They have asked the interested candidates to send their resumes and marks, in all of the subjects, in their respective board examinations. You need to find the average of all the marks (AVG TOTAL), as well as, the average of N best marks (AVG_BEST). In case any real(float) value comes out, you will drop the decimal part. NOTE: You do not need to use round(), floor() or ceil() for this program, Input Format First-line contains space-separated marks. Second-line contains input for N. Constraints 3<=Number of subjects=100 3

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Sample Input 0
81 89 47 61 95
3
Sample Output 0
{'AVG_TOTAL: 74, AVG_BEST': 88)
Explanation 0
If the marks of the student in 5 of the subjects are: 81, 89, 47, 61, 95, Then total average marks will be (81+89
+47 +61 +95)/5 = 373/5= 74.60. And the average of best 3 marks will be (81+89+95)/3 = 265/3 = 88.33. The
respective average values have been typecasted to integer values, respectively.
Therefore, the final output is a dictionary: {"AVG_TOTAL": 74, "AVG_BEST": 88)
Transcribed Image Text:Sample Input 0 81 89 47 61 95 3 Sample Output 0 {'AVG_TOTAL: 74, AVG_BEST': 88) Explanation 0 If the marks of the student in 5 of the subjects are: 81, 89, 47, 61, 95, Then total average marks will be (81+89 +47 +61 +95)/5 = 373/5= 74.60. And the average of best 3 marks will be (81+89+95)/3 = 265/3 = 88.33. The respective average values have been typecasted to integer values, respectively. Therefore, the final output is a dictionary: {"AVG_TOTAL": 74, "AVG_BEST": 88)
Dr. Jalote and Dr. Raghava are working on some inter-institute projects. They need some interns from outside
IIIT-D. They have asked the interested candidates to send their resumes and marks, in all of the subjects, in
their respective board examinations.
You need to find the average of all the marks (AVG_TOTAL), as well as, the average of N best marks (AVG_BEST).
In case any real(float) value comes out, you will drop the decimal part.
NOTE: You do not need to use round(), floor() or ceil() for this program.
Input Format
First-line contains space-separated marks.
Second-line contains input for N.
Constraints
3<=Number of subjects=100
3<N<number of subjects
0<-Marks in a subject<=100
Output Format
A dictionary with keys as "AVG_TOTAL" and "AVG_BEST".
Transcribed Image Text:Dr. Jalote and Dr. Raghava are working on some inter-institute projects. They need some interns from outside IIIT-D. They have asked the interested candidates to send their resumes and marks, in all of the subjects, in their respective board examinations. You need to find the average of all the marks (AVG_TOTAL), as well as, the average of N best marks (AVG_BEST). In case any real(float) value comes out, you will drop the decimal part. NOTE: You do not need to use round(), floor() or ceil() for this program. Input Format First-line contains space-separated marks. Second-line contains input for N. Constraints 3<=Number of subjects=100 3<N<number of subjects 0<-Marks in a subject<=100 Output Format A dictionary with keys as "AVG_TOTAL" and "AVG_BEST".
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Topological Sort
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education