Answer to Question #159316 in Java | JSP | JSF for krutharth

Question #159316

Bob employs a painting company that wants to use your services to help create an invoice

generating system. The painters submit an invoice weekly. They charge $30 per hour worked. They

also charge tax – 15%. Bob likes to see an invoice that displays all the information – number of

hours, the charge per hour, the total BEFORE tax and the total AFTER tax. Since this is an invoice, we

also need to display the name of the company (Painting Xperts) at the top of the invoice. Display all

of the information on the screen.


1
Expert's answer
2021-01-28T17:13:51-0500
public class Main
{
  public static void main (String[]args)
  {
    String name = "Painting Xperts";
    int hours = 15;
      System.out.println ("Name is: " + name);
      System.out.println ("Number of hours = " + hours);
      System.out.println ("The charge per hour = " + 30);
      System.out.println ("The total before taxes = " + hours * 30);
      System.out.println ("The total after taxes = " + 0.85 * hours * 30);
  }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog