subject

A snack bar has a frequent customer program in which every 10th purchase is free. Customers are enrolled in the program when they make their first purchase. A programmer is writing a program to implement the frequent customer program. In one code segment, cost is set to 0for every 10th purchase by a given customer. The programmer will use the procedure One word, Get Count, open parenthesis, one word, customer I D, close parenthesis , which returns the total number of purchases a customer has made since enrolling in the frequent customer program, including his or her first purchase. Which of the following code segments will set cost to 0 for every 10th purchase a customer makes after enrolling in the frequent customer program? a. count <- GetCount (customerID)
IF (count / 10 = 0)
{
cost <- 0
}

b. count <- GetCount (customerID)
IF (NOT (count / 10 = 0))
{
cost <- 0
}

c. count <- GetCount (customerID)
IF (count Mod 10 = 0)
{
cost <- 0
}

d. count <- GetCount (customerID)
IF (NOT (count Mod 10 = 0))
{
cost <- 0
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:30
An atom's diameter is about 0.1 nanometer (1×10-9m), and a human hair is about 1×10-3m. how many times greater is a human hair than an atom's diameter? sorry pushed wronf button but this is math
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
Match the sentence fragment in the first column with the appropriate ending in the second column. a little per favore?
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
(, urgent need): how do i change my username
Answers: 1
question
Computers and Technology, 25.06.2019 01:00
Why is outfitting a workplace with video games in a technology development company consiered a strategic use of money
Answers: 1
You know the right answer?
A snack bar has a frequent customer program in which every 10th purchase is free. Customers are enro...
Questions
question
Mathematics, 14.04.2021 22:30
question
Mathematics, 14.04.2021 22:30
question
English, 14.04.2021 22:30
question
Business, 14.04.2021 22:30
question
Mathematics, 14.04.2021 22:30
question
Mathematics, 14.04.2021 22:30
question
Mathematics, 14.04.2021 22:30
question
Social Studies, 14.04.2021 22:30
Questions on the website: 13722363