Skip to main content

Posts

Showing posts from July, 2023

TCS Xplore 2023 Ion Proctored Exam ( IPA) 26 june - JAVA coding solution ( 35 marks )

                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" . -----