Computers and Technology

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
}

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 20:30, maryanapritchak1829
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
image
Computers and Technology, 25.06.2019 07:00, awuekure
The graph shows the number of chapters sarah read in a book each day of a week
Answers: 1
image
Computers and Technology, 25.06.2019 08:30, atlasthegoat
While using pert (program evaluation review technique) and cpm (critical path method) techniques, activities that are not on the critical path are more inflexible than those activities on the critical path. select one: true false
Answers: 1
image
Computers and Technology, 25.06.2019 09:20, autumnhuls5720
The adbusters' image of the gap logo on the silhouette of a head most likely relays the message that: a. the man in the ad needs a hat from the gap b. consumers should be suspicious of gap ads c. gap clothes make you look intelligent d. everyone should have the gap on their minds
Answers: 1
Do you know the correct answer?
A snack bar has a frequent customer program in which every 10th purchase is free. Customers are enro...

Questions in other subjects:

Konu
Mathematics, 16.04.2020 10:15
Konu
Advanced Placement (AP), 16.04.2020 10:15
Konu
Physics, 16.04.2020 10:16