CraftPricing.java - \/In this program I've chosen to use JOptionPane and DecimalFormat in order to receive inputs and format them appropriately import

CraftPricing.java - /In this program I've chosen to use...

This preview shows page 1 out of 1 page.

//In this program I've chosen to use JOptionPane and DecimalFormat in order to receive inputs and format them appropriately. import javax.swing.JOptionPane; import java.text.DecimalFormat; public class CraftPricing { public static void main(String[] args) { DecimalFormat f = new DecimalFormat ("#.00"); String productString, materialCostString, manHoursString; double retailPrice; //Listed below are the Strings, their values, as well as the retail price after the calculations. productString = JOptionPane.showInputDialog(null, "Please enter the product you wish to calculate.", "Caitlyn's Crafty 25% off Calculator", JOptionPane.QUESTION_MESSAGE); materialCostString = JOptionPane.showInputDialog(null, "What is the
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Fall '15
  • Calculation, Caitlyn

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture