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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
Under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 1
question
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
question
Computers and Technology, 24.06.2019 03:40
4. does the kernel phenotype distribution support the idea that the cob is the result of a dihybrid cross? what information supports your answer? if a dihybrid cross (i.e. f1 to f2 of standard mendelian crosses) is not indicated what conditions might contribute to this finding.
Answers: 2
question
Computers and Technology, 24.06.2019 07:30
Jason is working on a microsoft excel worksheet and he wants to create a print preview shortcut. his teacher asks him to access the customization option to create the new shortcut. which two tabs should jason select to place the print preview shortcut on the worksheet toolbar? a. new tab (custom) and new group (custom) b. new file tab (custom) and new tab (custom) c. new custom group and new command d. new custom tab and new command
Answers: 2
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
question
Mathematics, 23.04.2021 20:30
question
Mathematics, 23.04.2021 20:30