Author Question: Compose a structured English statement for the following supermarket scenario:First, we determine ... (Read 42 times)

Charlie

  • Hero Member
  • *****
  • Posts: 640
Compose a structured English statement for the following supermarket scenario:First, we determine whether the customer has shopped with us before. If they have, we give them a free bonus coupon.
 
  If they have not yet shopped with us, we give them a free membership card. We do this until there are no more customers in line.

Question 2

Value checks are performed for data that is:
 
  A) continuous.
  B) discrete.
  C) cross-referenced.
  D) using a check digit.
  E) stored on a master file.



trampas

  • Sr. Member
  • ****
  • Posts: 320
Answer to Question 1

DO WHILE there are customers in line
IF customer has shopped here before
THEN give customer a bonus coupon
ELSE
THEN give customer a free membership card
END DO

Answer to Question 2

B



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
 

Did you know?

Drug abusers experience the following scenario: The pleasure given by their drug (or drugs) of choice is so strong that it is difficult to eradicate even after years of staying away from the substances involved. Certain triggers may cause a drug abuser to relapse. Research shows that long-term drug abuse results in significant changes in brain function that persist long after an individual stops using drugs. It is most important to realize that the same is true of not just illegal substances but alcohol and tobacco as well.

Did you know?

An identified risk factor for osteoporosis is the intake of excessive amounts of vitamin A. Dietary intake of approximately double the recommended daily amount of vitamin A, by women, has been shown to reduce bone mineral density and increase the chances for hip fractures compared with women who consumed the recommended daily amount (or less) of vitamin A.

Did you know?

Only one in 10 cancer deaths is caused by the primary tumor. The vast majority of cancer mortality is caused by cells breaking away from the main tumor and metastasizing to other parts of the body, such as the brain, bones, or liver.

Did you know?

The Centers for Disease Control and Prevention (CDC) was originally known as the Communicable Disease Center, which was formed to fight malaria. It was originally headquartered in Atlanta, Georgia, since the Southern states faced the worst threat from malaria.

Did you know?

Asthma-like symptoms were first recorded about 3,500 years ago in Egypt. The first manuscript specifically written about asthma was in the year 1190, describing a condition characterized by sudden breathlessness. The treatments listed in this manuscript include chicken soup, herbs, and sexual abstinence.

For a complete list of videos, visit our video library