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

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter9: Formula Auditing, Data Validation, And Complex Problem Solving
Section: Chapter Questions
Problem 7EYK
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
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L