Creating a simple calculate class to output a total in Java
<p>The code is-create a calculate class with calcTotal, calcSalesTax, and calcSubTotal methods inside. The user should be prompted to enter in a quantity and price and the tax is 0.7. I need to call this class in Main and then output the subtotal, tax, and total.</p>

<p>So far this is what I have in the calulator class </p>

<pre><code>package com.Nick.Calculator;

public class Calculator {
    public double calcSubTotal( double amount, double qty){
        double subTotal;
        subTotal=qty*amount;
        return subTotal;
    }

    public static double calcSalesTax(double subTotal, double taxAmount){
        double tax=0.7;
        taxAmount=subTotal*tax;
        return taxAmount;
    }

    public static double calcTotal(double subTotal, double taxAmount){
        double total;
        total=subTotal+taxAmount;
        return total;
    }
}
</code></pre>

<p>Does anything else need to go in this class, or can I prompt the user in main, and how to I call these functions correctly in Main? Thanks</p>
