Home / Expert Answers / Computer Science / i-need-a-java-code-for-the-questions-and-nbsp-please-make-a-code-in-one-class-nbsp-nbsp-create-t-pa711

(Solved): I need a java code for the questions and Please make a code in one class     Create t ...



I need a java code for the questions and Please make a code in one class

 

 

Create the program that will satisfy the following requirements

 

  1. The program will accept an amount representing bill items from the user repeatedly until the user says enough.
  2. The program will then total all the items inputted
  3. A tax of 8.25% is charged on the total of purchases.
  4. Shipping charges are added, and it is based on the number of items inputted and as specified on the following table:

3 items or less

3.00

More than 3 but less than 7

3.50

From 7 to 10

5.50

More than 10 up to 15

7.50

Greater than 15

11.00

 

           

 

  1. The program should be able to display the total purchase before tax, the number of items purchased, the sales tax amount, the shipping charge, and the grand total.
  2. The program should only accept numeric values from the user. If input is not numeric, it will prompt the user to enter a value until the user enters the correct input.
  3. The program should be able to use different method types (void, with parameters, with return values)
  4. The program should have proper documentation
  5. The program should have proper and clear prompts and utilize mnemonic variables.
  6. All numbers should be displayed with two decimal points.
  7. The program should be able to use at least two classes

 



We have an Answer from Expert

View Expert Answer

Expert Answer


ANSWER: Java Code: Main.java import java.util.*; // Main class public class Main { // function return true if inputed is a number else return false public static boolean is_number(String num) { boolean f= true; for(int i
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe