Question
I need help with this Java programming assignment: Duke Shirts sells Java t-shirts for $14.95 each, but discounts are possible for quantities as follows: 1
I need help with this Java programming assignment:
Duke Shirts sells Java t-shirts for $14.95 each, but discounts are possible for quantities as follows:
1 or 2 shirts, no discount and total shipping is $6.00
3-5 shirts, discount is 10% and total shipping is $8.00
6-10 shirts, discount is 20% and total shipping is $10.00
11 or more shirts, discount is 30% and shipping is free
Write a Java program that prompts the user for the number of shirts required. The program should then print the extended price of the shirts, the shipping charges, and the total cost of the order. Use currency format where appropriate.
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