Westonci.ca is your go-to source for answers, with a community ready to provide accurate and timely information. Get detailed and precise answers to your questions from a dedicated community of experts on our Q&A platform. Connect with a community of professionals ready to help you find accurate solutions to your questions quickly and efficiently.
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 on our site. Don't hesitate to return whenever you have more questions or need further clarification. Thank you for your visit. We're committed to providing you with the best information available. Return anytime for more. Find reliable answers at Westonci.ca. Visit us again for the latest updates and expert advice.