Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

Project 1 Speciications

Write a Java program that will calculate and display what it would cost to have a meal delivered by your company.

In this invoice, you do not need to display the contents of what the user will order, but only calculate and display the transaction amounts that will be paid by the user.

The transaction amounts include the input user name, input subtotal amount, the calculated tax amount, the calculated delivery fee amount, the calculated tip amount, and the calculated grand total amount.

To begin, the program should display a dialog box prompting the user to enter their name.

Next, using a dialog box for input, prompt the user to enter the subtotal amount in currency format. Next, calculate and display the tip amounts for 15%, 20%, and 25% of the subtotal in a dialog box

and then prompt the user to enter a percent amount in percent format.

The program is ready to begin calculating values:

the tax rate is 6.5% of the subtotal

the delivery fee is 10% of the subtotal

the tip amount (in percent format) of the subtotal

the grand total = subtotal + tax + delivery fee + tip amount

All monetary values should be in currency format.

Name the class:  nvoice

Follow all good programming naming conventions.  For this one project only, everything may be written in main(), but if you would like to try using methods (see Chapter 3), that would be         applaudable!

Also, for this irst project, you may assume the user will enter valid input.

An example:

When the program begins:

 

 


 


To Do:

1. Upload your .java ile to the Project 1 Drop Box.

2. Check the Calendar for the due date!

3. Be sure to use the template code (the ile called template code under the Eclipse module in Canvas).