Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA GUI Start a new Java Project and class file named after the program task with your initials (i.e.- CostEstimator_MH) The user will be given

JAVA GUI image text in transcribed

Start a new Java Project and class file named after the program task with your initials (i.e.- CostEstimator_MH) The user will be given a choice of 5 items as shown below (also shown is the price and weight): User will be asked to select A-E for the item, upper or lower case should be allowed. Based on the selection using the switch-case structure, store the name of the item in a variable, the price in another and the weight in yet another. If none of the correct choices are made, exit the program. The user will enter the quantity. Calculate the extended Cost (quantity x cost). Calculate the total weight (quantity x weight). Based on the quantity, calculate a discount amount (discount x extended cost), and sub-total (extended cost - discount amount) using the following: a. 25 items, 15% discount Ask if they are in Illinois. If yes, calculate a 6.25% sales tax. If no, 0%. The state tax should be in your code as a constant grouped with the variables. Install an "Easter Egg" - if the user enters jAvA (exact case) for the answer, make the total cost exist1.00.0 If the total cost of merchandise is over exist1000, free shipping. If not over exist1000, the shipping cost is exist10 + exist2 per pound, so that ordering 2 switches would cost exist10 + (exist2 times 6 lbs) = exist22. Calculate the final cost. Display all data for the purchaser that would be of interest to them to verify costs

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_2

Step: 3

blur-text-image_3

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

DNA Databases

Authors: Stefan Kiesbye

1st Edition

0737758910, 978-0737758917

More Books

Students also viewed these Databases questions

Question

3. Describe phases of minority identity development.

Answered: 1 week ago

Question

Use of assessments to determine trainees learning styles.

Answered: 1 week ago

Question

7. Discuss the advantages of embedded learning.

Answered: 1 week ago