Menu
Question Index
...


Write a program to get the students whose got the less than 35 marks in science subject.

Input (String Array, Integer Array) Output (String Array)
{Kavya, Navya, Divya, Rajesh, Vinod},
{35, 55, 33, 27, 38}
{Divya, Rajesh}
{Roopa, Reena, Raj, Lucky },
{33, 25, 77, 15}
{Roopa, Reena, Lucky}
{Madhuri, Vinay, Vijay, Nilesh, Radhika },
{31, 88, 57, 99, 100}
{Madhuri}
{Krish, Meena, Jyothi, Pavan},
{28, 34, 25, 20}
{Krish, Meena, Jyothi, Pavan}
{"Harika", "Swetha", "Sneha", "Sukumar"},
{35, 66, 47, 39}
{}

class FailedStudentsInScience

{    public static void main(String s[])
    {
        String names[] = {"Vishnu", "Sandhya", "Sravanthi", "Raju", "Meera"};
        int scienceMarks[] = {80, 76, 35, 32, 28};
        String result[] = getFailedStudents(names, scienceMarks);
        System.out.print("The students are :  ");
        for (String element : result)
        System.out.print(element + ", ");

    }


public static String[] getFailedStudents(String names[], int scienceMarks[]) {
//Write a code here to get the students whose got the less than 35 marks in science subject 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