Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lesson 1 . 2 Permutations 3 ) The map of a local park is shown below. The dashed lines represent walking paths and stars represent

Lesson 1.2 Permutations
3) The map of a local park is shown below. The dashed lines represent walking paths and stars represent the parks
entrance and exit. Assuming you want to walk directly from the park entrance to the park exit, that is you will
NOT retrace any point, how many options are there for you to take your walk? (10 points).
4) Use the following lines of code to answer their respective questions.
Parts a & b
for i :=1 to 5 do
print i
for j :=6 to 10 do
print j
for k :=11 to 15 do
print k
Parts c & d
for i :=1 to 5 do
for j :=6 to 10 do
for k :=11 to 15 do
print i + j + k
a. Calculate the number of times the print statement is executed? Note that the for loops are sequential.
b. What counting principle did you use?
c. Calculate the number of times the print statement is executed? Note that the for loops are nested.
d. What counting principle did you use 7) The host of a party is distributing candy to the 10 children in attendance. The host has 20 chocolate bars and 15
bags of M&Ms.(20 points)
a. How many ways can the candy be distributed?
b. If each child is to receive at least one chocolate bar and at least one bag of M&Ms, how many ways can
the candy be distributed 6) The owners of a small business purchased 20 lottery tickets to give to their 5 employees. (20 points)
a. How many ways can the lottery tickets be distributed?
b. If each employee is to receive at least two lottery tickets, how many ways can the lottery tickets be
distributed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Semantics Of A Networked World Semantics For Grid Databases First International Ifip Conference Icsnw 2004 Paris France June 2004 Revised Selected Papers Lncs 3226

Authors: Mokrane Bouzeghoub ,Carole Goble ,Vipul Kashyap ,Stefano Spaccapietra

2004 Edition

3540236090, 978-3540236092

More Books

Students also viewed these Databases questions

Question

How and why do the genders differ in mental ability scores?

Answered: 1 week ago

Question

Identify three types of physicians and their roles in health care.

Answered: 1 week ago

Question

Compare the types of managed care organizations (MCOs).

Answered: 1 week ago