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, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
How do i get rid of my member ship for
Answers: 2
question
Computers and Technology, 24.06.2019 10:30
This device directs network traffic. bridge hub nic repeater router switch
Answers: 3
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, 20.11.2019 00:31
question
Mathematics, 20.11.2019 00:31
Questions on the website: 13722367