0
double wholeCost = kb.nextDouble();
	double markupPercent = kb.nextDouble();
	double markup = markupPercent/100.0; 
	double retailT = calculateRetail(wholeCost, markup);
	System.out.println(retailT);
	
	public static double calculateRetail(double num1, double num2){
		double markupPrice = ((num1 * num2)+ num1);
		return markupPrice;}

i've been staring at this and can't figure what is wrong with it. the compiler keeps giving me an error at the "public static double calculateRetail(double num1, double num2){"

Edited by plasticfood: n/a

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by plasticfood
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.