Answered step by step
Verified Expert Solution
Question
1 Approved Answer
programming assignment,(Java). Objective To buid a complete working Java program to apply vaniations on the selection control structure and error-testing Overview& Instructions Write a program
programming assignment,(Java).
Objective To buid a complete working Java program to apply vaniations on the selection control structure and error-testing Overview& Instructions Write a program that determines calculates costs for orders related to your online coffee shop. Your shop sells a unique blend of extra high caffeine coffee named Liquid Death. You sell the following products Cost $19.99 $12.99 $24.89 Weight 2.0 lb 1.0 ib 2.5 lb Item Liquid Death coffee beans- 2 pound bag Liguid Death coffee k-cups - 20 per box Liquid Death souvenir coffee mug Customers can purchase any number of these product items, but the total number of tems cannot exceed 48. All items are packaged similarly and purchased items are shipped in boxes that can contain at most three items. Consider that purchasing three items requires one box but 4-6 requires two boxes Your program should prompt the user for the folowing: . Number of bags of coffee . Number of boxes of k-cups Number of coffee mugs . Whether or not the order is for a non-profft organization (by entering T for taxable or N for mon-profit) Calculate the total base cost of the order by multip/ying the number of each item ordered by its respective unit cost. Calculate (8%) tax on this amount if the order is taxable. Next, determine the shipping cost Calculate the total weight for the entire order (including all tems for all boxes by multiplying the count shipping cost of each item by its unit weight Use the following scheme to determine Shipping is... $0.99 per pound $1.99 per pound $2.99 per pound $3.99 per pound $4.99 per pound If total weight under 4 Ib at least 4 Ib, but still under 8 b 8 lb to 16 Ib over 16 lb but not over 28 lb over 28 IbStep 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