51]
19.
20.
21.
v/ 26.
27.
How many positive integers between 50 and 100
a) are divisible by 7? Which integers are these?
b) are divisible by 11? Which integers are these?
c) are divisible by both 7 and ll? Which integers are
these?
How many positive in
AMC 124
Exercises Permutations and Combinations
Answers in BLUE. Only Odd numbered questions have answers. Also explanation is not
given for the answers, you should try to figure that out on your own.
A. Easy
1. How many permutations are there of the set
Final Examination on Discrete Mathematics
1. (3%) How many ways are there to arrange the letters a, b, c, and d such that a is
not followed immediately by b?
Sol:
4! 3! = 18
2. (7%) How many numbers must be selected from the set cfw_1, 2, 3, 4, 5, 6 to gu
HAND IN
Answers recorded
in question paper
PAGE 1 OF 5 PAGES
QUEEN'S UNIVERSITY
FACULTY OF ARTS AND SCIENCE
SCHOOL OF COMPUTING
CISC-203
DISCRETE MATHEMATICS FOR COMPUTING SCIENCE
TEST 3
November 2005
Professor Selim G. AKL
Please write your answer to eac
432
6 / Counting
Exercises
1. In how many different ways can five elements be selected
in order from a set with three elements when repetition is
allowed?
2. In how many different ways can five elements be selected
in order from a set with five elements w
The University of Sydney
MATH 1004
Summer School
Discrete Mathematics
2017
Tutorial 5
1.
You have a deck of fifty-two cards.
(i) How many ways are there of choosing a hand of five cards?
(ii) How many of them contain the queen of hearts?
(iii) In how many
Counting
1
CS/Math231 Discrete Mathematics
Spring2015
The Basic Counting Principles
The Multiplication Rule
If an operation consists of k steps and
the first step can be performed in n1 ways,
the second step can be performed in n2 ways [regardless of how
ICS 141: Discrete Mathematics I
6.5 Generalized Permutations and Combinations
6.5 pg 432 # 1
In how many different ways can five elements be selected in order from a set with three elements
when repetition is allowed?
We have to select five elements (r =
3_
61 Counting
E ' erClSeS
-~-
1. In how many different ways can five elements be selected
in order from a set with three elements when repetition is
allowed?
2. In how many different ways can five elements be selected
in order from a set with five elemen
PocketNumber = int( input( "Please enter a Pocket Number:" ) )
print()
if PocketNumber < 0 or PocketNumber > 36:
print( "Please enter a number from 0 to 36" )
else:
if PocketNumber = 0:
print( "The pocket is green" )
elif PocketNumber < 11:
if PocketNumbe
MEMO
TO:
SUBJECT:
All managers
Management meeting
Because of the holiday weekend, next weeks management meeting has been moved
from Monday at 10 am to Tuesday at 10 am. Please refer to the next page for a revised
agenda.
Management Meeting Agenda
10:00
10
Daja Miller 1440222
6922 PrjWD-9
Last Ditch Defense
Christmas Eve, 1944: As the door of the railroad car slammed shut behind
Captain Towne, Art and the enlisted men of H&S Company drained their
glasses, grabbed their jackets, and hustled outside.
Sergeant
MEMORANDUM - Novel-Tea & Coffee, Inc.
To:
Tea n Coffee Shop Managers
From: Food and Beverage Director, Novel-Tea & Coffee
RE:
Reminder Fundamentals of Coffee-making
Just a reminder to all Tea n Coffee Shop managers that it takes more
than our fine beans t
Novel-Tea News
Reporter: Daja Miller
How Much Lead is in Your Cup?
Caffeine is a product found in many popular beverages. Yet most people are
trying to curb their daily caffeine intake. After all, the effects of excessive
caffeine have recently received a
Novel-Tea News
Reporter: Daja Miller
How Much Fat Is in Your Cup?
As employees of Novel-Tea & Coffee, you may be asked about the
calories and the fat content of some of our standard and specialty drinks.
The following list of standard drinks with their ca
#Lab 3C
#Alejandro Camacho
#What form is your water in?
T = int(input("What is the temperature of the water in degrees Celcius?")
if T<=0:
print('The water is
elif T>0 and T<=100:
print('The water is
elif T>100 and T<10000:
print('The water is
elif T>=100
Adebola Moronkolas Magic Date Flowchart
Start
Assign
00<=99 to Year
1<=12 to Month
1<=31 to Day
Input
Day, ,Month and Year
Processing
00 <= year <= 99 01 <= month <= 12 All days
must be: day >= 1 For months: 1, 3, 5, 7, 8,
10, 12, day <= 31 For months: 4,
#Adebola moronkola
#Grading Program
#This Program will dispaly a bar graph
#Input
print('ADEBOLA MORONKOLA
Store1= int(input("Enter
Store2= int(input("Enter
Store3= int(input("Enter
Store4= int(input("Enter
Store5= int(input("Enter
print(' ')
#Display the
#Adebola Moronkola
#Jameson Miller
import random
def main():
num = int(input("How many random numbers do you want to generate?: ")
low = int(input("What is the lower bound?: ")
high = int(input("What is the upper bound?: ")
add = 0
numbers_file = open('nu
#Adebola Moronkola
#This program will display joe'e stock transaction program
Number_of_Shares = int(input("Enter the number of share purchased: ")
Price_of_shares = float(input("Enter the price per share [in dollars]: ")
Commission = float(input("Enter t
Adebola Moronkola
Spch-110-2037
Engagement 1
August 23,2016.
Magic Bag Activity
Identity can be talked about or defined as a person's own sense of self; their personal sense of
who they are. Below are three items I will be looking at that resonates with m
# Grader2.py
# This program gets a numeric score from the user and displays the corresponding
letter grade
# Adebola Moronkola
#Create a variable to control the loop.
Keep_going = 'y'
A_score
B_score
C_score
D_score
=
=
=
=
90
80
70
60
#output
while Keep_
#Lab 6
#Andrew Tellez
def smallest_number():
keep_going = True
while keep_going:
try:
filename = input('Please Enter the Filename desired:')
infile = open(filename, 'r')
smallest = float(infile.readline()
for line in infile:
amount = float(line)
if amount
Kruger, Nicole
Comm 534GW
September 18th, 2016
Dear Professor Letter #1
Dear Chet,
What a dilemma youre in! I recognize what youre going through, and its definitely not
easy. Ive been there before, and I chose to not be friends with them because it was to
#Adebola Moronkola
#Magic Date Program
#This program will test the date typed in
#to determine if it is a Magic Date or not
# Variable to represent the date thresholds.
Year = 00<=99
Month = 1<=12
Day = 1<=31
#Get the input from the user.
Day = int(input(