Sunday, February 21, 2016

Cashless transaction with local Transport

The goal of this project is to send SMS to people who have been registered with an local transport organization where  they pay amount in advance and travel through out the year as  long as they have balance available.

For this project I have used OzekiNG to simulate SMS.


Here are the class files:

Deduct balance.class


package JavaSMSProject;

import java.io.IOException;
import java.util.Scanner;


public class Deductbalance {


public static void main(String[] args) throws IOException {

Scanner in  = new Scanner(System.in);
System.out.println("Enter the user id:");
String user_id = in.next();
//in.close();

Scanner in2  = new Scanner(System.in);
System.out.println("Enter the amount:");
String amount = in2.next();
//sin2.close();

String workingDir = System.getProperty("user.dir");
String fileName = workingDir + "\\resources\\Localtransportdatabase.xlsx";
//String path =

ReadDatabase rd = new ReadDatabase();

rd.writeToExcel(fileName, user_id, amount);


}





}

Other classes are in next posts.





No comments:

Post a Comment