Professional Documents
Culture Documents
Public Class Salestax2
Public Class Salestax2
{
public static void main(String[] args)
{
int Ecoast_sales;
double money;
double total_sales;
Ecoast_sales = 46000000;
money = 0.62;
total_sales = Ecoast_sales * money;
import java.util.*;
public class Restaurant_Bill
{
public static void main(String[] args)
{
Scanner keyboard = new Scanner(System.in);
System.out.print("Please enter the total amount of you reciept: $");
int a = keyboard.nextInt();
double tax;
double tip;
double bill;
tax = 0.0675 * a ;
tip = (tax + a) * 0.2;
bill = tax + tip + a ;