RetailPriceCalculator.java - *Write a program that asks the user to enter an items retail price For example s wholesale cost is 5.00 and its markup

RetailPriceCalculator.java - *Write a program that asks the...

This preview shows page 1 - 2 out of 2 pages.

/*Write a program that asks the user to enter an items retail price. For example: s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item If an items retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item. */ package retailpricecalculator; import java.util.Scanner; public class RetailPriceCalculator { public static void main(String[] args) { Scanner input = new Scanner (System.in); double wholeSale;
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Winter '15
  • Bak
  • Scanner input, public class RetailPriceCalculator

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture