View the step-by-step solution to:

Question

import java.util.*;

public class DebugTwo4

{

   public static void main(String[] args)<

/p>

   {

      Scanner input = new Scanner(System.in);

      string costString;

      double cost;

      finalTAX = 0.06;

      System.out.println("Enter price of item you are buying");

      costString = input.next();

      cost = Double.parsedouble(coststring);

      System.out.println("With " + TAX * 100 +

      "% tax,  purchase  is $" + cost + cost * TAX);

   }

}



Please debug this clearly and explain for a beginner. Thanks.

Top Answer

example compilation output: DebugTwo4.java: 7 : error: cannot find symbol string costString; ^ ... View the full answer

Sign up to view the full answer

Other Answers

Answer is given with... View the full answer

correction1.jpg

OpenJDK Runtime Environment (build 10. 0. 2+13-Ubuntu-lubuntu0. 10, 04.
4)
javac -classpath . :/run_dir/junit-4.12.jar -d . Main. java
java -classpath . :/run_dir/junit-4. 12. jar Main
Enter price...

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question