Tab Spliter Script
Tab Spliter Script
Scanner;
public class TabSplitter {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
//welcome message
System.out.println("Welcome to Tab Splitter!");
System.out.println("This program will calculate the total bill plus the tip,
");
System.out.println("and divide the amount among the customers at the
table.");
System.out.println("How many people are sharing the bill? "); //ask for
amount of people sharing bill
int customers = scan.nextInt();
System.out.println("Bill:" + billAmount);
System.out.println("Tip:" + tipPercentage);
System.out.println("Total with Tip:" + totalAmount);
System.out.println("Each person owes:" + amountPerPerson);
}
}