At Westonci.ca, we connect you with the best answers from a community of experienced and knowledgeable individuals. Experience the ease of finding reliable answers to your questions from a vast community of knowledgeable experts. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

A restaurant knows from historical data that 60 out of 100 of its customers purchase a full meal while 40 out of 100 only order a side dish. The program below is intended to simulate the orders of 1000 customers.

Sagot :

The statement that completes the code segment is random(1,100)<=60.

From the question, we have the following highlights

  • In every 100 customers, 60 purchase full meal
  • In every 100 customers, 40 purchase a side dish

Random generator

Using a random generator, the following must be true

  • The lower bound of the generator must be 1
  • The upper bound of the generator must be 100

The conditional statement

From the complete program, the else if statement handles the customers that purchase only side dish.

So, the if condition must handle the customers that buy full meals.

Hence, the missing statement in the code is random(1,100)<=60

Read more about code segments at:

https://brainly.com/question/18497347