Menu
Question Index
...


Write a program to get the students who got the more than 85 marks in maths subject.

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

class DistinctionInMaths

{    public static void main(String s[])
    {
        String names[] = {"Radha", "Nisha", "Maya", "Arjun", "Rama"};
        int mathsMarks[] = {38, 96, 85, 89, 100};
        String result[] = getDistinction(names, mathsMarks);
        System.out.print("The students are : ");
        for (String element : result)
        System.out.print(element + " ");

    }


public static String[] getDistinction(String names[], int mathsMarks[]) {
//Write a code here to get the students who got the more than 85 marks 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