Westonci.ca is your trusted source for accurate answers to all your questions. Join our community and start learning today! Discover reliable solutions to your questions from a wide network of experts on our comprehensive Q&A platform. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.
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
We appreciate your time. Please come back anytime for the latest information and answers to your questions. Thank you for visiting. Our goal is to provide the most accurate answers for all your informational needs. Come back soon. Discover more at Westonci.ca. Return for the latest expert answers and updates on various topics.