Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java problem. i have an array list call item order inside it it has [Pencil : 14.50, Rubix Cube : 10.00, Laptop :1300] my question

java problem.

i have an array list call item order inside it it has [Pencil : 14.50, Rubix Cube : 10.00, Laptop :1300]

my question is here i need to calculate the total of these items with exception

if they are member and they purcase more than 20 dollars they will get 15 percent discount;

the problem is the assignment need to calculate the array list one by one so first initiation from user, user wanted to buy pencil 14.50 he does have account but dont get discount and total will stay at 14.50, second initiation the user want to buy rubix cube 10 dollars. now the total is 24.50 they will get discount so the total will will be 20.82. then the last is he wants to buy laptop total is 1324.50 and they will get discount and total will be 1125.82

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

More Books

Students also viewed these Databases questions

Question

Who are the stakeholders affected by this corporate merger?

Answered: 1 week ago

Question

Describe the sampling method used in the study.

Answered: 1 week ago

Question

Prepare a short profile of Henry words worth Longfellow?

Answered: 1 week ago

Question

What is RAM as far as telecommunication is concerned?

Answered: 1 week ago

Question

Question 1: What is reproductive system? Question 2: What is Semen?

Answered: 1 week ago

Question

Describe the sources of long term financing.

Answered: 1 week ago