--------------------- TCS NQT 2024 SYLLABUS ---------------------- Part A Foundation Section a. Numerical Ability ( 25 min for 20 Question ) b. Verbal Ability ( 25 min for 25 Question ) c. Reasoning Ability ( 25 min for 20 Question ) Part B Advanced Section a. Advanced Numerical Ability ( 20 min for 10 Q ) b. Advanced Reasoning Ability ( 15 min for 10 Q ) c. Advanced Coding ( 55 min for 2 Q )
Problem Statement : ---------------------->>>> Click Here : Subscribe to click <<<<< -------------------------- Create a class Team and make attributes : int TeamID; String TeamName; String Location; int TotalRunsByTeam; int numberOfWicketsInTeam; Write constructor and their getter and setter of all the attributes and make the attributes private . Write a Solution class and a main method inside it. Inside main method , create a method teamWithHighestRuns . In this method you have to pass array object and one String input and one integer value that will return integer value . we needs to check every object and if objects which has the location matched to string value taken by user and numberOfWicketsInTeam should be more than integer value then find the team with highest runs for the above mentioned condition . It returns the sum and if sum is greater than 0 then print it or if returns 0 then print "No any resort" . -----