Академический Документы
Профессиональный Документы
Культура Документы
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package practiceshop;
import java.text.*;
/**
*
* @author david johnson
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
//define
double newPrice = 0;
int numUnits = 0;
double totalValue = 0;
//process
double taxRate = 8.5 / 100;
double totalPrice = totalValue * (1 + taxRate);
//output
System.out.println("The new total is: " + currency.format(totalPrice));