Skip to main content

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

 Problem Statement :



Write a java program in which -

1. declare a class Beach and make attributes as -

        int - BeachId , String - BeachName , String Location , String type , int rating ,int avg person come 

and along with the constructor . All the attribute should be private and implement their  getter and setter .

2. Write a Solution class with main method . where you have to implement a static method findLeastRating where you have to pass array object along with the String and an integer value which you have to take form user .( where String refers to location and int refers to number of person come )

3. in findLeastRating method , you have to implement that if  location of any array object matches with the given String value of location and avg number of person come is greater than integer value that is taken from user then print the rating which is least one . and there is no any value get then it simply returns 0 and display on screen " No data found" .

Input :

1001

A

north goa

small

4

1000

1002

B

south goa

big

5

2000

1003

C

puri

small

7

3000

1004

D

south goa

moderate

5

3000

1005

E

north goa

moderate

3

3500



Code : 





Comments

Popular posts from this blog

Complete Strategy to clear TCS Xplore IPA in One Attempt Now ( 80+ Score )

  So hello Everyone , Here are the all Links from where you can Practice !  All the resources are searched from my best !  1. For KYT and Bizzskill  Link :- tcs Xplore course  2. Unix Operating system Link :-    a.  click here Link 1 b.  click here Link 2 c.  Click here Link 3   3. UI  Link :-  click here 4. SQL and Pl SQL Link : -  Click here Click here click here 5. Java MCQ  Link :-  click here click here click here 6. Java coding :-  Access the playlist on YouTube :-  click here to watch Access the blogs :-  click here All in one link :-   click here

TCS IPA previous year quistion ( 35 marks ) , Quistion , Input , output

 Problem Statement Video Link :    https://youtu.be/XCBvfJAo908 Create a class TravelAgencies with below attributes: regNo – int agencyName – String pakageType – String price – int flightFacility – boolean Write getters, setters for the above attributes . Create constructor which takes parameter in the above sequence. Create class Solution with main method. Implement two static methods – findAgencyWithHighestPackagePrice and agencyDetailsforGivenIdAndType in Solution class. findAgencyWithHighestPackagePrice method: This method will take array of TravelAgencies objects as an input parameter and return the highest package price from the given array of objects. agencyDetailsForGivenldAndType method: This method will take three input parameters -array of TravelAgencies objects, int parameter regNo and String parameter packageType. The method will return the TravelAgencies object based on below conditions. FlightFacility should be available. The input parameters(regNo and pack...

TCS Xplore 2023 - JAVA MCQ question for best practice ( iON Proctored Assessment )

           Multiple Choice Question ( JAVA )     ---------------------->>>>    Click Here : Subscribe to click   <<<<< -------------------------- PART - 01  Q1 . What is size of float and double ?         a.  32 and 64                      b. 32 and 32          c.  64 and 64                      d. 64 and 32  Ans : 32 and 64  Q2 .  What will be the output ?            short x=10;           x*=5;           System.out.println(x);         a.  50                                b. 10         c.  No output    ...