subject

J. Crew is having a sale that allows the customer, if they buy 3 or more items, to receive the lowest priced item for free. The
management at J. Crew asks you to write a program that will
calculate the customer’s bill during this promotion.
Write a program that:
1. Prompts the clerk for the number of items the customer is
purchasing and collects each item’s price into an array.
2. Passes the array to a method that calculates the total price of
all of the amounts in the array.
3. Passes the array into a getLowest method to determine the
item with the lowest price.
4. Calls a getSales method that returns the total amount of the
customer’s sale, including the discount, if applicable. Of
course, this method SHOULD NOT subtract out the lowest
item’s amount if the customer did not purchase 3 or more
items.
5. Displays the number of items purchased, the price of each,
the discount amount (if applicable) and the customer’s total.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 06:20, kiarakagni
What is a point-in-time measurement of system performance?
Answers: 3
image
Computers and Technology, 24.06.2019 00:30, rustjallison9928
Asecurity policy is a a. set of guidlines b. set of transmission protocols c. written document d. set of rules based on standards and guidelines
Answers: 2
image
Computers and Technology, 24.06.2019 07:40, daebreonnakelly
What type of multimedia are live news feeds? live news feeds are examples of multimedia.
Answers: 2
image
Computers and Technology, 25.06.2019 00:30, aleiahmartin
Which email writing etiquette should ariel follow to let people know that she received their message? a. reply to their messages immediately b. use formal language c. specify the email's intent in the subject field d. be direct when writing the reply
Answers: 1
You know the right answer?
J. Crew is having a sale that allows the customer, if they buy 3 or more items, to receive the low...

Questions in other subjects: