Skip to content

Commit 17549a3

Browse files
Merge pull request #3228 from isabel-lombardi/add-test-m1-018
Add test m1 018
2 parents 19b6020 + 01673b1 commit 17549a3

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

projects/m1/017-what-day-of-the-week/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ and **reports the day of the week for January 1 of that year**.
1313
The output from your program **should include the full name of the day of the week**, not just the integer returned by the formula.
1414

1515
Example:
16+
Input: 2023
17+
Output: Wednesday
1618

1719
# Documentation
1820

projects/m1/018-roulette-payouts/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
# Roulette Payouts
22

3-
A roulette wheel has 38 spaces on it.
4-
Of these spaces, 18 are black, 18 are red, and two are green.
5-
The green spaces are numbered 0 and 00. The red spaces are numbered 1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30 32, 34 and 36.
6-
The remaining integers between 1 and 36 are used to number the black spaces.
7-
Many different bets can be placed in roulette.
3+
A roulette wheel has **38 spaces** on it.
4+
Of these spaces:
5+
- 18 are red, numbered 1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30 32, 34 and 36.
6+
- 18 are black, the remaining integers between 1 and 36 are used to number the black spaces.
7+
- 2 are green, numbered 0 and 00
88

9+
Many different bets can be placed in roulette.
910
We will only consider the following subset of them in this exercise:
1011
- Single number (1 to 36, 0, or 00)
1112
- Red versus Black
1213
- Odd versus Even (Note that 0 and 00 do not pay out for even)
1314
- 1 to 18 versus 19 to 36
1415

15-
Write a program that simulates a spin of a roulette wheel by using a random number generator. Display the number that was selected and all of the bets that must be payed.
16+
Write a program that simulates a spin of a roulette wheel **by using a random number generator**.
17+
Display **the number that was selected and all the bets that must be paid**.
1618

1719
For example, if 13 is selected then your program should display:
1820

0 commit comments

Comments
 (0)