Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MyJava Coffee Outlet decided to give discounts to volume buyers. The discount is based on the following table: Order Volume Discount 2 25 bags
MyJava Coffee Outlet decided to give discounts to volume buyers. The discount is based on the following table: Order Volume Discount 2 25 bags 2 50 bags 2 100 bags 2 150 bags 5% of total price 10% of total price 15% of total price 20% of total price Each bag of beans costs $5.50. Write an application that accepts the number of bags ordered and prints out the total cost of the order in the following style: Sample Runl: Enter the Number of bags ordered: 173 The total cost of the order: 951.50 Your Discount is 20% which is $ 190.30 Your final charge is: $ 761.20 Sample Run2: Enter the Number of bags ordered: -120 Invalid Input, Enter a positive value for number bags !
Step by Step Solution
★★★★★
3.48 Rating (171 Votes )
There are 3 Steps involved in it
Step: 1
The code is as follows import javautil public class MyClass ...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
Document Format ( 2 attachments)
635f36f493741_231682.pdf
180 KBs PDF File
635f36f493741_231682.docx
120 KBs Word File
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started