Question
Write a Java application that determines the order amount for each of an unknown number of customers. The company applies a quantity discount for all
Write a Java application that determines the order amount for each of an unknown number of customers. The company applies a quantity discount for all orders based on the following rules: o If the quantity is greater than 100, print the message You qualify for a $5.00 discount!, and subtract $5.00 from the order amount o If the quantity is greater than 200, print the message You qualify for a $10.00 discount!, and subtract $10.00 from the order amount o For each customer your program should print the order amount, plus 8.6 % sales tax, minus any applicable discount Input the quantity and price for each of the customers, then determine and display the employees order amount and quantity discount message. At the end of the program, print the total order amount for all customers. Example of a test run (pass 1): Enter Quantity: 150 Enter Price: 19.99 You qualify for a $5.00 discount Your amount for this order is $3250.94 At end print grand total of all orders
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started