Yes, I am a total newbie. I am doing this code for homework. It is giving me an error on the method line is saying that it is missing.Please help.
import java.io.*;
public class discount
{public static input in = new input();
public static void main(String[] args) throws IOException;
{double price,disc,total,perc;
System.out.println("Please enter price: ");
price = in.getDouble();
System.out.println("please enter discount percentage rate: ");
disc = in.getDouble();
perc = price(disc/100);
total = price - perc;
System.out.println("Your total cost is: "+total);
}
}