Menu
Question Index
...

Write a program to get the name of a student who got the least marks in science subject.

Input (String Array, Integer Array) Output (String)
{"Kavya", "Navya", "Divya", "Rajesh", "Vinod"},
{80, 76, 85, 92, 89}
"Navya"
{"Roopa", "Reena", "Raj", "Lucky" },
{97, 45, 77, 85}
"Reena"
{"Madhuri", "Vinay", "Vijay", "Nilesh", "Radhika" },
{35, 88, 67, 99, 100}
"Madhuri"
{"Krish", "Meena", "Jyothi"},
{78, 56, 45}
"Jyothi"
{"Harika", "Swetha", "Sneha", "Sukumar"},
{35, 66, 47, 39}
"Harika"



class ScienceLeastMarks
{
    public static void main(String s[])
    {
        String names[] = {"Kavya", "Navya", "Divya", "Rajesh", "Vinod"};
        int scienceMarks[] = {80, 76, 85, 92, 89};
        System.out.println("The least marks got by :  " + getLeastScorerInScience(names, scienceMarks));

    }


        public static String getLeastScorerInScience(String names[], int scienceMarks[])
        {
        }

}

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