package com.ilp;

public class Main {

/**
* @param args
*/
public static void main(String[] args) {

Cust c1 = new Cust();
c1.printCustDetails();
c1.printLtPoints(2,0);
System.out.println(“your total loyalty points:” +c1.getLtpoints());
c1.calculateDiscount(12000);
System.out.println(“the price after discount:” +c1.getFp());
System.out.println(“your tour has been booked”);
c1.resetLtPoints();
System.out.println(“your NEW loyalty points:”+ c1.getLtpoints());

}

}

Advertisements

cust

package com.ilp;

public class Cust {
private String custname=”Hari”;
private String custid=”H87″;
private int notp; //number of tour packages
private int nors; //number of room services
private double ltpoints; //loyalty points
private double pp;//package price
private double fp; // final price
private boolean disc=false;

public String getCustname() {
return custname;
}

public void setCustname(String custname) {
this.custname = custname;
}

public String getCustid() {
return custid;
}

public void setCustid(String custid) {
this.custid = custid;
}

public int getNotp() {
return notp;
}

public void setNotp(int notp) {
this.notp = notp;
}

public int getNors() {
return nors;
}

public void setNors(int nors) {
this.nors = nors;
}

public double getLtpoints() {
return ltpoints;
}

public void setLtpoints(double ltpoints) {
this.ltpoints = ltpoints;
}

public double getPp() {
return pp;
}

public void setPp(double pp) {
this.pp = pp;
}

public double getFp() {
return fp;
}

public void setFp(double fp) {
this.fp = fp;
}

public boolean isDisc() {
return disc;
}

public void setDisc(boolean disc) {
this.disc = disc;
}

public void printCustDetails()
{
System.out.println(“The name of the customer is”+ custname);
System.out.println(“The customer ID is”+custid);
}

public double printLtPoints(int notp, int nors)
{
ltpoints= notp*200+nors*100;
return ltpoints;
}

public double calculateDiscount(double pp)
{
if(ltpoints>50 && ltpoints300 && ltpoints600)
{
fp=pp-(0.10*pp);
disc=true;
}
else
{
fp=pp;
disc=false;
}
return fp;
}

public double resetLtPoints()
{
if(disc=true)
{
ltpoints=0;
}

return ltpoints;
}

}

A New Journey!

Its been a while since I wrote a post. Not that I’ve been busy or something, but that nothing much has been going around lately.

Just when I got sick of the gym routine and tv shows, I got my joining letter at Tata Consultancy Services. And it didn’t disappoint me because they’ve given a new location for me to go and re-learn those mad IT skills again.

Although, I’m a bit worried about how much useful my broken Hindi is gonna be, I can’t deny that I’m excited. Frankly, I’ve never lived anywhere for more than a week other than Chennai or Bangalore.

And to tread in an unknown place is always gonna be good.

Looking forward to the train journey and I hope IRCTCs random seat arrangement (for once) gives me some good company!

The KL Experience!

When I first went to KL, I didn’t think much of it. Because, the only place I’d been to, outside India was Dubai and I thought KL was slow, not developed.

But as I moved to Singapore, from Kuala Lumpur, the experience was the same as what you feel when you move from a road-side tea-stall  to an expensive Coffee Shop.  The ambience changes. The People Change. So does your expenses.

And the comfort of SG lasts until you notice how light your pocket got.

DSC05716

First of all, one of the apparent benefits of KL, is that its cheap.

When I went to  Singapore, after KL, I got the feeling that everything in SG was artificial and monotonous, just like every other developed city.

Kuala Lumpur has its own tune. The people are different and not everyone is hooked on to their phones when you take the metro ride. Although, the trains are much crowded and old, I had a better experience going in it. Coming to the taxis in KL, they’re voted as having one of the worst taxi systems in the world. Yes, there were drivers who tried to rip me off, but once I found this friendly old Japanese guy, who not only spoke to me about the Malaysian made car Proton but in the end, told me not to take a taxi from a stand since they charge super high.

I stayed for 3 days in Kuala Lumpur in Tuanku Abdul Rahman Road. Opposite to my hotel, was this Chinese market,  filling an entire road. And at 12 in the night, everything’s gone!

The next morning, cars and trucks passed through that road and again at afternoon 1, the people came and set up their market. I observed this thing for 3 days and it was surprising. It was not just 10/20 shops, but hundreds of them. I’ve never seen anything like that before. Overall, variety of things I experienced in Kuala Lumpur made good memories and I’d love to come back to KL again!