Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions

Question

=+2. Explain the interactions in the newspaper and magazine market!

Answered: 1 week ago