Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Finding the percentage #58

Open
ndrohith09 opened this issue Oct 20, 2022 · 3 comments · Fixed by #116
Open

Finding the percentage #58

ndrohith09 opened this issue Oct 20, 2022 · 3 comments · Fixed by #116
Assignees
Labels
easy question Further information is requested

Comments

@ndrohith09
Copy link
Member

The provided code stub will read in a dictionary containing key/value pairs of name:[marks] for a list of students. Print the average of the marks array for the student name provided, showing 2 places after the decimal.

Example

image

Input Format

The first line contains the integer ,n the number of students' records. The next n lines contain the names and marks obtained by a student, each value separated by a space. The final line contains query_name, the name of a student to query.

Constraints

image

Output Format

Print one line: The average of the marks obtained by the particular student correct to 2 decimal places.

Sample Input 0

3
Krishna 67 68 69
Arjun 70 98 63
Malika 52 56 60
Malika

Sample Output 0

56.00

Explanation 0

image

Sample Input 1

2
Harsh 25 26.5 28
Anurag 26 28 30
Harsh

Sample Output 1

26.50
@ndrohith09 ndrohith09 added question Further information is requested easy labels Oct 20, 2022
@riyatomar9
Copy link
Contributor

I want to solve it using python

riyatomar9 added a commit to riyatomar9/hacktoberfest that referenced this issue Oct 20, 2022
riyatomar9 added a commit to riyatomar9/hacktoberfest that referenced this issue Oct 20, 2022
ndrohith09 added a commit that referenced this issue Oct 24, 2022
@jaichiranjeeva
Copy link
Contributor

I would like to solve this question in java

jaichiranjeeva added a commit to jaichiranjeeva/hacktoberfest that referenced this issue Oct 24, 2022
resolves cognizance-amrita#58 Finding_the_percentage question in java.
@likhi-23
Copy link
Contributor

i would like to solve this question in c++

thekavikumar added a commit that referenced this issue Oct 25, 2022
@thekavikumar thekavikumar reopened this Oct 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
easy question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants