Write a program in Java that would ask the clerk to enter the total amount of the customer’s order. The program will then calculate a seven percent (7%) sales tax. Calculate commission based on the following: order amount id="mce_marker" - $200 commission is 2%, order amount $201 - $400 commission is 3%,  order amount $401 - $600 commission is 4%, order amount > $600 commission is 5%. The program will display the following:   a) The amount of customer’s order (eg. $500.00 or id="mce_marker",000.00)  b) The tax amount  c) The total amount including tax added  d) Commission Amount  e) The customer will make ten orders, display the average of the total order and the sum of all orders.  You must use at least two methods. Write the output to a file named “Order.txt” The program should also display “Thanks for your business and please come again.”  Output: The amount of the Customer’s order    $XXX, XXX.XX The tax amount is                                $XXX,XXX.XX The total Amount plus Tax is                $XXX,XXX.XX Average order is                                    $XXX,XXX,XX Sum of the order is                               $XXX,XXX.XX

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Write a program in Java that would ask the clerk to enter the total amount of the customer’s order. The program will then calculate a seven percent (7%) sales tax. Calculate commission based on the following: order amount id="mce_marker" - $200 commission is 2%, order amount $201 - $400 commission is 3%,  order amount $401 - $600 commission is 4%, order amount > $600 commission is 5%.

The program will display the following:  

  1. a) The amount of customer’s order (eg. $500.00 or id="mce_marker",000.00) 
  2. b) The tax amount 
  3. c) The total amount including tax added 
  4. d) Commission Amount 
  5. e) The customer will make ten orders, display the average of the total order and the sum of all orders. 

You must use at least two methods. Write the output to a file named “Order.txt” The program should also display “Thanks for your business and please come again.” 

Output:

The amount of the Customer’s order    $XXX, XXX.XX

The tax amount is                                $XXX,XXX.XX

The total Amount plus Tax is                $XXX,XXX.XX

Average order is                                    $XXX,XXX,XX

Sum of the order is                               $XXX,XXX.XX

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education