Professional Documents
Culture Documents
Resort Answer Corrected One
Resort Answer Corrected One
Customersooin9 ,
DLuxuryResortjava Resortjava 3
Testerjava DQueuejava Solutionjava Stackjava
this.totalStayCost totalstayCost Testerjavwa
2
43
To Trainee
public void generateBookingID () {
counter+
String bookId;
if(roomType.equalsIgnoreCase(
bookTd="G"+counter: GoldD
4
custBooking.setCustBookingID(bookId) ;
else if(roomType.equalsIgnoreCase("Deluxe"))
bookid=D ounter;
custBooking.setCustBookingID(bookId);
2
sel bookId= R+Counters
custBooking. setCustBookingID (bookId);
WTo Trainee
else if(custBooking-getMembershipType().equals("Platinum")){
discountPercentage-15;
elsediscountPercentage=0;
logic here
52
// Implement your
85
return statement accordingly
84
5
1/Change the
return discountPercentage;
elsel
for(String s: regLuxuryServicesArr){
for(int i-0; i <luxuryServicesArr.length;it+)
if(s.equalsIgnoreCase(luxuryservicesArr[i]))
luxuryservicesCost+=luxuryservicescostArr[i]s
11Change the
return statement accordingly
return IuxuryServicesCosts
if(roomFound=-false)
roomcostPerbay
if(roomcostperDay-1){
discountPercentage identifyDiscountPercentage()
luxuryServicescost identityLuxuryservicescostOs
stayingcost-roomCostPerbay + luxuyservicescost
stayingCost(this.viewype.egualsake tayanCost5 avns
double totalStaycost stayingcostthis.8etustooKngO-getstayaon
totalStaycost totalStaycosttotalStaycost (discountPercentage/100,)
this.setTotalStaycost(totalStayCost);
this -generateBookingID();
Nritable Smart insert 61:5
Source Ketactor Navigate >ercn roect
dit
P : l
LuxuryResort.java Resort.java 9 Testerjava DQueuejava Solutionjava Stackjava Testerj
CustomerBookingjava uxury>erviesLUSL UenLyLURury>erv4LeSLUS U
stayingcostnoomcostPerbay + luxuryServicesCost;
?stayingCost+500:stayingfost;
stayingCost (this.viewType.equals ("lake"))
double totalStayCost stayingCost this.getCustBooking ()-getstayDuration ();
totalStayCost totalstaycost totalstayCost "(discountPercenta8e/100.8);
this.setrotalstaycost(totalstayCost);
b this.generateBookingID();
57
59
sethis. getCustBooking ().setCustBookingID(
this.setTotalStayCost(-1.e);
"NA")