RetailPriceCalculator.java - \/Rushi Patel\/CSC 161-01\/Program 1 package retail.price.calculator import javax.swing.JOptionPane public class cfw public

RetailPriceCalculator.java - /Rushi Patel/CSC...

This preview shows page 1 out of 1 page.

//Rushi Patel //CSC 161-01 //Program 1 package retail.price.calculator; import javax.swing.JOptionPane; public class RetailPriceCalculator { public static void main(String[] args) { //Declaring the variable. double retailPrice = 0; String outputStr; outputStr = ("Your retail price for this product is: " + calculateRetail(retailPrice));//calling the method. JOptionPane.showMessageDialog(null,outputStr,"Retail Price calculator",1 );//Creating output dialogbox for the output. } public static double calculateRetail(double retailPrice){ //Declaring the variables.
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Fall '14
  • retail price, public class RetailPriceCalculator

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture