Skip to content

Commit 4d1c2fd

Browse files
committed
remove style50 stuff, submit instructions, mentions of directories
1 parent 45c424b commit 4d1c2fd

File tree

8 files changed

+18
-167
lines changed

8 files changed

+18
-167
lines changed

caesar/caesar.md

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ substituting a valid integer in place of `key`, within [this sandbox](http://bit
8383

8484
Design and implement a program, `caesar`, that encrypts messages using Caesar's cipher.
8585

86-
* Implement your program in a file called `caesar.c` in a directory called `caesar`.
86+
* Implement your program in a file called `caesar.c`.
8787
* Your program must accept a single command-line argument, a non-negative integer. Let's call it _k_ for the sake of discussion.
8888
* If your program is executed without any command-line arguments or with more than one command-line argument, your program should print an error message of your choice (with `printf`) and return from `main` a value of `1` (which tends to signify an error) immediately.
8989
* If any of the characters of the command-line argument is not a decimal digit, your program should print the message `Usage: ./caesar key` and return from `main` a value of `1`.
@@ -243,25 +243,4 @@ Now it's time to tie everything together! Instead of shifting the characters by
243243

244244
Execute the below to evaluate the correctness of your code using `check50`. But be sure to compile and test it yourself as well!
245245

246-
check50 -l minprog/cs50x/2020/caesar
247-
248-
Execute the below to evaluate the style of your code using `style50`.
249-
250-
style50 caesar.c
251-
252-
253-
## How to submit
254-
255-
As soon as you're done, submit your `caesar.c` implementation, below!
256-
257-
1. Toward CS50 IDE's top-left corner, within its "file browser" (not within a terminal window), control-click or right-click your `caesar.c` file (that's within your `~/problems/caesar` directory) and then select **Download**. You should find that your browser has downloaded `caesar.c`.
258-
259-
2. Also download `pseudocode.txt`.
260-
261-
3. Make sure you are signed in to **this** website!
262-
263-
4. In the form below, choose the files that you just downloaded.
264-
265-
5. Press "Submit for grading". Presto!
266-
267-
Your program will then again be checked using `check50` and the result will be recorded on this website. Should the check fail unexpectedly, be sure to try if `check50` is still satisfied when you run it in your IDE's Terminal.
246+
check50 -l minprog/cs50x/2021/caesar

cash/index.md

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,9 @@ Ultimately, your program should behave per the examples below.
8585

8686
## Getting Started
8787

88-
First, create a new directory (i.e., folder) called `cash` inside of your `problems` directory, by executing
88+
To start, you'll create a file called `cash_pseudocode.txt` to help you analyze the problem. You will submit this analysis together with the final implementation in C.
8989

90-
~/ $ mkdir ~/problems/cash
91-
92-
To start, you'll create a file called `pseudocode.txt` to help you analyze the problem. You will submit this analysis together with the final implementation in C.
93-
94-
Write in `pseudocode.txt` some pseudocode that implements this program, even if not (yet!) sure how to write it in code. There's no one right way to write pseudocode, but short English sentences suffice. Recall how we wrote pseudocode for finding Mike Smith! Odds are your pseudocode will use (or imply using!) one or more functions, conditions, Boolean expressions, loops, and/or variables.
90+
Write in `cash_pseudocode.txt` some pseudocode that implements this program, even if not (yet!) sure how to write it in code. There's no one right way to write pseudocode, but short English sentences suffice. Recall how we wrote pseudocode for finding Mike Smith! Odds are your pseudocode will use (or imply using!) one or more functions, conditions, Boolean expressions, loops, and/or variables.
9591

9692
When writing your pseudocode, think of this question:
9793

@@ -110,25 +106,4 @@ Does your code work as prescribed when you input
110106

111107
You can also execute the below to evaluate the correctness of your code using `check50`. But be sure to compile and test it yourself as well!
112108

113-
check50 -l minprog/cs50x/2020/cash
114-
115-
Execute the below to evaluate the style of your code using `style50`.
116-
117-
style50 cash.c
118-
119-
120-
## How to submit
121-
122-
As soon as you're done, submit your `cash.c` implementation, below!
123-
124-
1. Toward CS50 IDE's top-left corner, within its "file browser" (not within a terminal window), control-click or right-click your `cash.c` file (that's within your `~/problems/cash` directory) and then select **Download**. You should find that your browser has downloaded `cash.c`.
125-
126-
2. Also download `pseudocode.txt`.
127-
128-
3. Make sure you are signed in to **this** website!
129-
130-
4. In the form below, choose the files that you just downloaded.
131-
132-
5. Press "Submit for grading". Presto!
133-
134-
Your program will then again be checked using `check50` and the result will be recorded on this website. Should the check fail unexpectedly, be sure to try if `check50` is still satisfied when you run it in your IDE's Terminal.
109+
check50 -l minprog/cs50x/2021/cash

crack/crack.adoc

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ zamyla:50cI2vYkF0YU2
3939

4040
Design and implement a program, `crack`, that cracks passwords.
4141

42-
* Implement your program in a file called `crack.c` in a directory called `crack`.
42+
* Implement your program in a file called `crack.c`.
4343
* Your program should accept a single command-line argument: a hashed password.
4444
* If your program is executed without any command-line arguments or with more than one command-line argument, your program should print an error (of your choice) and exit immediately, with `main` returning `1` (thereby signifying an error).
4545
* Otherwise, your program must proceed to crack the given password, ideally as quickly as possible, ultimately printing the password in the clear followed by `\n`, nothing more, nothing less, with `main` returning `0`.
@@ -71,19 +71,10 @@ ROFL
7171

7272
== Testing
7373

74-
=== Correctness
75-
7674
----
7775
check50 -l minprog/cs50x/2020/crack
7876
----
7977

80-
=== Style
81-
82-
[source]
83-
----
84-
style50 crack.c
85-
----
86-
8778
== Hints
8879

8980
Be sure to read up on `crypt`, taking particular note of its mention of "salt":
@@ -97,7 +88,7 @@ You'll likely want to put
9788

9889
[source,c]
9990
----
100-
#include <crypt.h>
91+
#include <unistd.h>
10192
----
10293

10394
at the top of your file in order to use `crypt`.

credit/credit.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ So, validating credit card numbers isn't hard, but it does get a bit tedious by
4646

4747
## Implementation details
4848

49-
In a file called `credit.c` in a `~/problems/credit/` directory, write a program that prompts the user for a credit card number and then reports (via `printf`) whether it is a valid American Express, MasterCard, or Visa card number, per the definitions of each's format herein. So that we can automate some tests of your code, we ask that your program's last line of output be `AMEX\n` or `MASTERCARD\n` or `VISA\n` or `INVALID\n`, nothing more, nothing less. For simplicity, you may assume that the user's input will be entirely numeric (i.e., devoid of hyphens, as might be printed on an actual card). But do not assume that the user's input will fit in an `int`! Best to use `get_long` from CS50's library to get users' input. (Why?)
49+
In a file called `credit.c` and write a program that prompts the user for a credit card number and then reports (via `printf`) whether it is a valid American Express, MasterCard, or Visa card number, per the definitions of each's format herein. So that we can automate some tests of your code, we ask that your program's last line of output be `AMEX\n` or `MASTERCARD\n` or `VISA\n` or `INVALID\n`, nothing more, nothing less. For simplicity, you may assume that the user's input will be entirely numeric (i.e., devoid of hyphens, as might be printed on an actual card). But do not assume that the user's input will fit in an `int`! Best to use `get_long` from CS50's library to get users' input. (Why?)
5050

5151
Consider the below representative of how your own program should behave when passed a valid credit card number (sans hyphens).
5252

@@ -87,22 +87,3 @@ If your program behaves incorrectly on some inputs (or doesn't compile at all),
8787
You can execute the below to evaluate the correctness of your code using `check50`. But be sure to compile and test it yourself as well!
8888

8989
check50 -l minprog/cs50x/2020/credit
90-
91-
Execute the below to evaluate the style of your code using `style50`.
92-
93-
style50 credit.c
94-
95-
96-
## How to submit
97-
98-
As soon as you're done, submit your `credit.c` implementation, below!
99-
100-
1. Toward CS50 IDE's top-left corner, within its "file browser" (not within a terminal window), control-click or right-click your `credit.c` file (that's within your `~/problems/credit` directory) and then select **Download**. You should find that your browser has downloaded `credit.c`.
101-
102-
3. Make sure you are signed in to **this** website!
103-
104-
4. In the form below, choose the file that you just downloaded.
105-
106-
5. Press "Submit for grading". Presto!
107-
108-
Your program will then again be checked using `check50` and the result will be recorded on this website. Should the check fail unexpectedly, be sure to try if `check50` is still satisfied when you run it in your IDE's Terminal.

mario/less/index.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,7 @@ How to begin? Let's approach this problem one step at a time.
8181

8282
## Pseudocode
8383

84-
First, create a new directory (i.e., folder) called `mario` inside of your `problems` directory, by executing
85-
86-
~/ $ mkdir ~/problems/mario
87-
88-
Add a new file called `pseudocode.txt` inside of your `mario` directory.
89-
90-
Write in `pseudocode.txt` some pseudocode that implements this program, even if not (yet!) sure how to write it in code. There's no one right way to write pseudocode, but short English sentences suffice. Recall how we wrote pseudocode for finding Mike Smith! Odds are your pseudocode will use (or imply using!) one or more functions, conditions, Boolean expressions, loops, and/or variables.
84+
Create a new file called `mario_pseudocode.txt`. Write some pseudocode that implements this program, even if not (yet!) sure how to write it in code. There's no one right way to write pseudocode, but short English sentences suffice. Recall how we wrote pseudocode for finding Mike Smith! Odds are your pseudocode will use (or imply using!) one or more functions, conditions, Boolean expressions, loops, and/or variables.
9185

9286
<details markdown="1"><summary markdown="span">Spoiler</summary>
9387

@@ -104,7 +98,7 @@ It's okay to edit your own after seeing this pseudocode here, but don't simply c
10498

10599
## Prompting for Input
106100

107-
Whatever your pseudocode, let's first write only the C code that prompts (and re-prompts, as needed) the user for input. Create a new file called `mario.c` inside of your `mario` directory.
101+
Whatever your pseudocode, let's first write only the C code that prompts (and re-prompts, as needed) the user for input. Create a new file called `mario.c`.
108102

109103
Now, modify `mario.c` in such a way that it prompts the user for the pyramid's height, storing their input in a variable, re-prompting the user again and again as needed if their input is not a positive integer between 1 and 8, inclusive. Then, simply print the value of that variable, thereby confirming (for yourself) that you've indeed stored the user's input successfully, a la the below.
110104

@@ -203,25 +197,8 @@ All that remains now is a finishing flourish! Modify `mario.c` in such a way tha
203197

204198
Execute the below to evaluate the correctness of your code using `check50`. But be sure to compile and test it yourself as well!
205199

206-
check50 -l minprog/cs50x/2020/mario/less
200+
check50 -l minprog/cs50x/2021/mario/less
207201

208202
### Hint
209203

210204
A space is just a press of your space bar, just as a period is just a press of its key! Just remember that `printf` requires that you surround both with double quotes!
211-
212-
213-
## How to submit
214-
215-
As soon as you're done, submit your `mario.c` implementation, below!
216-
217-
1. Toward CS50 IDE's top-left corner, within its "file browser" (not within a terminal window), control-click or right-click your `mario.c` file (that's within your `problems` directory) and then select **Download**. You should find that your browser has downloaded `mario.c`.
218-
219-
2. Also download `pseudocode.txt`.
220-
221-
2. Make sure you are signed in to **this** website!
222-
223-
3. In the form below, choose the file that you just downloaded.
224-
225-
4. Press "Submit for grading". Presto!
226-
227-
Your program will then again be checked using `check50` and the result will be recorded on this website. Should the check fail unexpectedly, be sure to try if `check50` is still satisfied when you run it in your IDE's Terminal.

population/index.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -121,23 +121,10 @@ Years: 115
121121

122122
Execute the below to evaluate the correctness of your code using `check50`. But be sure to compile and test it yourself as well!
123123

124-
check50 -l minprog/cs50x/2020/population
125-
126-
Execute the below to evaluate the style of your code using `style50`.
127-
128-
style50 population.c
129-
124+
check50 -l minprog/cs50x/2021/population
130125

131126
## How to submit
132127

133-
As soon as you're done, submit your `population.c` implementation, below!
134-
135-
1. Toward CS50 IDE's top-left corner, within its "file browser" (not within a terminal window), control-click or right-click your `population.c` file (that's within your `problems/population` directory) and then select **Download**. You should find that your browser has downloaded `population.c`.
136-
137-
2. Make sure you are signed in to **this** website!
138-
139-
3. Type the names of students that you've worked with on this problem: <input name="form[samengewerkt]" type="text" required>
140-
141-
4. In the form below, choose the file that you just downloaded.
128+
As soon as you're done, submit your `population.c` implementation, below! Your program will then again be checked using `check50` and the result will be recorded on this website. Should the check fail unexpectedly, be sure to try if `check50` is still satisfied when you run it in your IDE's Terminal.
142129

143-
Your program will then again be checked using `check50` and the result will be recorded on this website. Should the check fail unexpectedly, be sure to try if `check50` is still satisfied when you run it in your IDE's Terminal.
130+
Type the name of the student you've worked with: <input name="form[samengewerkt]" type="text" required>

readability/index.md

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ within [this sandbox](http://bit.ly/2ulEXkw).
5959

6060
Design and implement a program, `readability`, that computes the Coleman-Liau index of the text.
6161

62-
* Implement your program in a file called `readability.c` in a directory called `~/problems/readability`.
62+
* Implement your program in a file called `readability.c`.
6363
* Your program must prompt the user for a `string` of text (using `get_string`).
6464
* Your program should count the number of letters, words, and sentences in the text. You may assume that a letter is any lowercase character from `a` to `z` or any uppercase character from `A` to `Z`, any sequence of characters separated by spaces should count as a word, and that any occurrence of a period, exclamation point, or question mark indicates the end of a sentence.
6565
* Your program should print as output `"Grade X"` where `X` is the grade level computed by the Coleman-Liau formula, rounded to the nearest integer.
@@ -140,7 +140,7 @@ If the resulting index number is 16 or higher (equivalent to or greater than a s
140140

141141
## Getting Started with Pseudocode
142142

143-
To start, you'll create a file called `pseudocode.txt` to help you analyze the problem. You will submit this analysis together with the final implementation in C.
143+
To start, you'll create a file called `readability_pseudocode.txt` to help you analyze the problem. You will submit this analysis together with the final implementation in C.
144144

145145
There's no one right way to write pseudocode, but short English sentences suffice. Recall how we wrote pseudocode for finding Mike Smith in lecture. Odds are your pseudocode will use (or imply using!) one or more functions, conditions, Boolean expressions, loops, and/or variables.
146146

@@ -184,28 +184,3 @@ Try running your program on the following texts.
184184
* `It was a bright cold day in April, and the clocks were striking thirteen. Winston Smith, his chin nuzzled into his breast in an effort to escape the vile wind, slipped quickly through the glass doors of Victory Mansions, though not quickly enough to prevent a swirl of gritty dust from entering along with him.` (Grade 10)
185185

186186
* `A large class of computational problems involve the determination of properties of graphs, digraphs, integers, arrays of integers, finite families of finite sets, boolean formulas and elements of other countable domains.` (Grade 16+)
187-
188-
Execute the below to evaluate the correctness of your code using `check50`. But be sure to compile and test it yourself as well!
189-
190-
check50 -l minprog/cs50x/2020/readability
191-
192-
Execute the below to evaluate the style of your code using `style50`.
193-
194-
style50 readability.c
195-
196-
197-
## How to submit
198-
199-
As soon as you're done, submit your `readability.c` implementation, below!
200-
201-
1. Toward CS50 IDE's top-left corner, within its "file browser" (not within a terminal window), control-click or right-click your `readability.c` file (that's within your `problems` directory) and then select **Download**. You should find that your browser has downloaded `readability.c`.
202-
203-
2. Also download `pseudocode.txt`.
204-
205-
2. Make sure you are signed in to **this** website!
206-
207-
3. In the form below, choose the files that you just downloaded.
208-
209-
4. Press "Submit for grading". Presto!
210-
211-
Your program will then again be checked using `check50` and the result will be recorded on this website. Should the check fail unexpectedly, be sure to try if `check50` is still satisfied when you run it in your IDE's Terminal.

scrabble/index.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -102,23 +102,9 @@ Your program should behave per the examples below.
102102

103103
Execute the below to evaluate the correctness of your code using `check50`. But be sure to compile and test it yourself as well!
104104

105-
check50 -l minprog/cs50x/2020/scrabble
106-
107-
Execute the below to evaluate the style of your code using `style50`.
108-
109-
style50 scrabble.c
105+
check50 -l minprog/cs50x/2021/scrabble
110106

111107

112108
## How to submit
113109

114-
As soon as you're done, submit your `scrabble.c` implementation, below!
115-
116-
1. Toward CS50 IDE's top-left corner, within its "file browser" (not within a terminal window), control-click or right-click your `scrabble.c` file (that's within your `problems/scrabble` directory) and then select **Download**. You should find that your browser has downloaded `scrabble.c`.
117-
118-
2. Make sure you are signed in to **this** website!
119-
120-
3. Type the names of students that you've worked with on this problem: <input name="form[samengewerkt]" type="text" required>
121-
122-
4. In the form below, choose the file that you just downloaded.
123-
124-
Your program will then again be checked using `check50` and the result will be recorded on this website. Should the check fail unexpectedly, be sure to try if `check50` is still satisfied when you run it in your IDE's Terminal.
110+
Type the name of the student you've worked with: <input name="form[samengewerkt]" type="text" required>

0 commit comments

Comments
 (0)