I\'m having trouble figuring out how to fix these errors I keep getting for my code
import java.util.Scanner;
public class Unit02Prog1 {
public static void
your variable numWords is string, please parse it to integer first for comparing. Then, update price to double as well. Sample code is as per below.
int numWords;
System.out.print("numWords");
numWords = input.nextInt();
double price;
if (numWords >= 50) {
price = ((numWords -50) * .08) + 5.00;
System.out.println("customer:" + name);
System.out.println("Placed an ad in catagory:" + catagory);
System.out.println("Ad length is" + numWords + "words, at a price of $" + price);
}