Menu
Question Index
...


Write a program to identify the student with highest total marks.

Input (String Array, Integer Array, Integer Array) Output(String)
{Roopa, Reena, Raj, Lucky},
{65, 78, 92, 100},
{78, 63, 85, 95}
"Lucky"
{Madhuri, Vinay, Vijay, Nilesh, Radhika},
{55, 89, 84, 78, 66},
{78, 63, 85, 95, 68}
"Nilesh"
{Krish, Meena, Jyothi, Sowjanya},
{52, 38, 65, 33},
{55, 29, 24, 38}
"Krish"
{Harika, Ashok, Kiran, Arun},
{62, 35, 68, 73},
{55, 89, 44, 38}
"Ashok"
{Harsha, Amulya, Akram, Suma},
{38, 66, 78, 76},
{52, 44, 67, 66}
"Akram"

class TotalTopper

{    public static void main(String s[])
    {
        String names[] = {"Kavya", "Navya", "Divya", "Rajesh", "Vinod"};
        int mathsMarks[] = {80, 76, 85, 92, 100};
        int scienceMarks[] = {70, 86, 85, 90, 89};
        System.out.println("The total topper is " + getTopper(names, mathsMarks, scienceMarks));

    }


public static String getTopper(String names[], int mathsMarks[], int scienceMarks[]) {
//Write a code here to get the topper in maths and return it.
}
}


Doubts

Problems

Topic: Java String Arrays - String Arrays In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App