Posted by P on Sunday, October 31, 2010 at 12:20pm.
I'm a beginner to Java and I need to know how to do the following:
Write a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 4 percent and the county sales tax is 2 percent. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the total sales tax). Hint: Use the value 0.02 to represent 2 percent, and 0.04 to represent 4 percent.
Can anybody help me?
Java Programming - SraJMcGin, Sunday, October 31, 2010 at 3:00pm
Here are some Java Programming tutorials:
Java Programming - MathMate, Monday, November 1, 2010 at 7:26pm
Post either pseudocode, or actual coding, in whatever shape they are in.
If you do not know how to do either one of the two, post what you have learned, the name of your textbook, the chapters covered, and the course outline.
Java Programming - dd, Monday, November 22, 2010 at 10:25am
// Create a Scanner object to read input.
Scanner keyboard = new Scanner(System.in);
// Get the Purchase Amount
System.out.print(" What is the Purchase Amount?");
System.out.println( " Purchase " + purchaseAmount);
System.out.println( " State Tax " + stateSalesTax);
System.out.println( " County Tax " + countySalesTax );
System.out.println( " Total Tax " + totalSalesTax +"\n_________");
System.out.println( " Total Sale " + totalSale);
Python Programming - Robert, Thursday, March 12, 2015 at 9:01pm
A customer is in a store to purchase 6 items. Write a program which asks for the sales tax and the price of each item, then displays: 1. the subtotal of the sale 2. the total amount of tax to be collected 3. the total amount the customer must pay
Answer This Question
More Related Questions
- programming - Write a program which allows user to enter 10 student names and ...
- java programming - the learner is asked to write a program using java with user ...
- intro to computer programming - Write a program that asks the user to enter the ...
- programming - Having troube with java, i am not a regular programmer, if anybody...
- programming - Write a program that will ask the user to enter the amount of a ...
- java - can anyone help me with this? I'm new to java! Write a program that will ...
- Computer Programming Design - Design a program that will ask the user to enter ...
- java programming - Create a java program that will calculate the current grade ...
- JAVA PROGRAMMING - Create a java program that will calculate the current grade ...
- java programming - Your boss at Ruritania Weather Center (RWC) has asked you to ...