Question: help with Java A company sells 8 GB flash drives for $3.30 each and 16 GB flash drives for $5.20 each. However, large-quantity orders of
help with Java
A company sells 8 GB flash drives for $3.30 each and 16 GB flash drives for $5.20 each. However, large-quantity orders of flash drives of the same type receive discounts. Orders of between 25 and 49 flash drives receive a 10 % discount, orders of between 50 and 99 flash drives receive a 15 % discount, and orders of 100 or more flash drives receive a 20 % discount. Write a program that uses the type and quantity of flash drives ordered, and calculates the cost of the order.
Notes:
- You must use at lease one switch block
- The input values must work for both uppercase and lowercase.
- Assume that the user will always enter valid input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
