Last week I went to bowling with my friends in Fremont and we enjoyed it a lot. I paid on behalf of them for the game so that everyone else pay me back later. Despite their repeated query to know how much they should pay me, I was too busy the whole last week to calculate that. Right now, having a little relax time, so I downloaded JDK 6 in my new laptop from office and wrote the small java program to calculate it. Compile and run the program to know how much I owe to each of them. /** * To compile: javac -d . BowlingCost.java * To run: java BowlingCost */ import java.util.Map; import java.util.HashMap; import java.util.Iterator; public class BowlingCost { public static final double shoeRent = 4.0; public static final double perGame = 4.25; private static int male = 5; private static int female = 4; private static Map payersMaritalStatus = new HashMap(); public BowlingCost() { payersMaritalStatus.put("Shahriar", Boolean.TRUE); ...
I am an engineering leader, a chess enthusiast and an avid reader. I have moved as a software engineer inUSA from my home country Bangladesh at 2005 leaving many of my family members, relatives, friends and good memories. In this journal I want to capture how are my days going here in this migrated place with my wife, son and daughter.